mirror of
https://github.com/sveltejs/svelte.git
synced 2024-12-01 17:30:59 +01:00
b9d3c235e7
Disable Buble transforms not needed for Node 4
29 lines
653 B
JavaScript
29 lines
653 B
JavaScript
import * as path from 'path';
|
|
import nodeResolve from 'rollup-plugin-node-resolve';
|
|
import commonjs from 'rollup-plugin-commonjs';
|
|
import buble from 'rollup-plugin-buble';
|
|
|
|
export default {
|
|
entry: 'src/server-side-rendering/register.js',
|
|
moduleName: 'svelte',
|
|
targets: [
|
|
{ dest: 'ssr/register.js', format: 'cjs' }
|
|
],
|
|
plugins: [
|
|
nodeResolve({ jsnext: true, module: true }),
|
|
commonjs(),
|
|
buble({
|
|
include: 'src/**',
|
|
exclude: 'src/shared/**',
|
|
target: {
|
|
node: 4
|
|
}
|
|
})
|
|
],
|
|
external: [ path.resolve( 'src/index.js' ), 'fs', 'path' ],
|
|
paths: {
|
|
[ path.resolve( 'src/index.js' ) ]: '../compiler/svelte.js'
|
|
},
|
|
sourceMap: true
|
|
};
|