0
0
mirror of https://github.com/sveltejs/svelte.git synced 2024-12-01 17:30:59 +01:00
svelte/rollup.config.main.js
2016-12-08 15:15:53 +01:00

20 lines
405 B
JavaScript

import nodeResolve from 'rollup-plugin-node-resolve';
import commonjs from 'rollup-plugin-commonjs';
export default {
entry: 'src/index.js',
moduleName: 'svelte',
targets: [
{ dest: 'compiler/svelte.js', format: 'umd' }
],
plugins: [
nodeResolve({ jsnext: true, module: true }),
commonjs()
],
external: [ 'magic-string' ],
globals: {
'magic-string': 'MagicString'
},
sourceMap: true
};