You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
svelte/rollup/rollup.config.ssr.js

29 lines
653 B

import * as path from 'path';
8 years ago
import nodeResolve from 'rollup-plugin-node-resolve';
8 years ago
import commonjs from 'rollup-plugin-commonjs';
import buble from 'rollup-plugin-buble';
8 years ago
export default {
entry: 'src/server-side-rendering/register.js',
8 years ago
moduleName: 'svelte',
targets: [
{ dest: 'ssr/register.js', format: 'cjs' }
8 years ago
],
plugins: [
8 years ago
nodeResolve({ jsnext: true, module: true }),
commonjs(),
buble({
include: 'src/**',
exclude: 'src/shared/**',
target: {
node: 4
}
})
8 years ago
],
external: [ path.resolve( 'src/index.ts' ), 'fs', 'path' ],
paths: {
[ path.resolve( 'src/index.ts' ) ]: '../compiler/svelte.js'
},
8 years ago
sourceMap: true
8 years ago
};