From 68c128174d71df13b4f8d0ede1ed544b57563e7f Mon Sep 17 00:00:00 2001 From: Rich-Harris Date: Thu, 8 Dec 2016 08:19:46 -0500 Subject: [PATCH] resolve path to external-but-local dependency --- rollup.config.ssr.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 };