0
0
mirror of https://github.com/sveltejs/svelte.git synced 2024-12-01 01:11:24 +01:00
svelte/rollup/rollup.config.main.js
Rich Harris b9d3c235e7 Merge pull request #411 from sveltejs/disable-unneeded-buble-transforms
Disable Buble transforms not needed for Node 4
2017-03-27 08:53:39 -04:00

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
};