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';
|
2017-03-07 18:05:41 +01:00
|
|
|
import buble from 'rollup-plugin-buble';
|
2016-11-19 19:10:32 +01:00
|
|
|
|
|
|
|
export default {
|
2016-12-07 17:43:43 +01:00
|
|
|
entry: 'src/index.js',
|
2016-11-19 19:10:32 +01:00
|
|
|
moduleName: 'svelte',
|
|
|
|
targets: [
|
2016-12-07 17:43:43 +01:00
|
|
|
{ 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(),
|
2017-03-07 18:05:41 +01:00
|
|
|
json(),
|
|
|
|
buble({
|
|
|
|
include: 'src/**',
|
|
|
|
exclude: 'src/shared/**',
|
2017-03-27 14:07:55 +02:00
|
|
|
target: {
|
|
|
|
node: 4
|
2017-03-07 18:05:41 +01:00
|
|
|
}
|
|
|
|
})
|
2016-11-26 16:52:25 +01:00
|
|
|
],
|
|
|
|
sourceMap: true
|
2016-11-19 19:10:32 +01:00
|
|
|
};
|