You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
svelte/rollup/rollup.config.main.js

35 lines
730 B

8 years ago
import nodeResolve from 'rollup-plugin-node-resolve';
8 years ago
import commonjs from 'rollup-plugin-commonjs';
import json from 'rollup-plugin-json';
import buble from 'rollup-plugin-buble';
8 years ago
export default {
entry: 'src/index.js',
8 years ago
moduleName: 'svelte',
targets: [
{ dest: 'compiler/svelte.js', format: 'umd' }
8 years ago
],
plugins: [
8 years ago
nodeResolve({ jsnext: true, module: true }),
commonjs(),
json(),
buble({
include: 'src/**',
exclude: 'src/shared/**',
transforms: {
arrow: false,
classes: false,
conciseMethodProperty: false,
templateString: false,
letConst: false,
numericLiteral: false
}
})
8 years ago
],
external: [ 'magic-string' ],
globals: {
'magic-string': 'MagicString'
},
8 years ago
sourceMap: true
8 years ago
};