mirror of
https://github.com/sveltejs/svelte.git
synced 2024-12-01 01:11:24 +01:00
b9d3c235e7
Disable Buble transforms not needed for Node 4
26 lines
513 B
JavaScript
26 lines
513 B
JavaScript
import nodeResolve from 'rollup-plugin-node-resolve';
|
|
import commonjs from 'rollup-plugin-commonjs';
|
|
import json from 'rollup-plugin-json';
|
|
import buble from 'rollup-plugin-buble';
|
|
|
|
export default {
|
|
entry: 'src/index.js',
|
|
moduleName: 'svelte',
|
|
targets: [
|
|
{ dest: 'compiler/svelte.js', format: 'umd' }
|
|
],
|
|
plugins: [
|
|
nodeResolve({ jsnext: true, module: true }),
|
|
commonjs(),
|
|
json(),
|
|
buble({
|
|
include: 'src/**',
|
|
exclude: 'src/shared/**',
|
|
target: {
|
|
node: 4
|
|
}
|
|
})
|
|
],
|
|
sourceMap: true
|
|
};
|