diff --git a/rollup.config.ssr.js b/rollup.config.ssr.js index 875f564d94..912aaecc3f 100644 --- a/rollup.config.ssr.js +++ b/rollup.config.ssr.js @@ -1,3 +1,4 @@ +import * as path from 'path'; import nodeResolve from 'rollup-plugin-node-resolve'; import commonjs from 'rollup-plugin-commonjs'; @@ -11,9 +12,9 @@ export default { nodeResolve({ jsnext: true, module: true }), commonjs() ], - external: [ 'src/index.js', 'magic-string' ], + external: [ path.resolve( 'src/index.js' ), 'magic-string' ], paths: { - 'src/index.js': '../compiler/svelte.js' + [ path.resolve( 'src/index.js' ) ]: '../compiler/svelte.js' }, sourceMap: true };