resolve path to external-but-local dependency

pull/156/head
Rich-Harris 8 years ago
parent e1cf4ea49b
commit 68c128174d

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

Loading…
Cancel
Save