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

26 lines
513 B
JavaScript
Raw Normal View History

2016-11-19 19:10:32 +01:00
import nodeResolve from 'rollup-plugin-node-resolve';
2016-11-26 16:52:25 +01:00
import commonjs from 'rollup-plugin-commonjs';
2017-01-04 17:26:26 +01:00
import json from 'rollup-plugin-json';
import buble from 'rollup-plugin-buble';
2016-11-19 19:10:32 +01:00
export default {
entry: 'src/index.js',
2016-11-19 19:10:32 +01:00
moduleName: 'svelte',
targets: [
{ dest: 'compiler/svelte.js', format: 'umd' }
2016-11-19 19:10:32 +01:00
],
plugins: [
2016-11-26 16:52:25 +01:00
nodeResolve({ jsnext: true, module: true }),
2017-01-04 17:26:26 +01:00
commonjs(),
json(),
buble({
include: 'src/**',
exclude: 'src/shared/**',
target: {
node: 4
}
})
2016-11-26 16:52:25 +01:00
],
sourceMap: true
2016-11-19 19:10:32 +01:00
};