import nodeResolve from 'rollup-plugin-node-resolve';
import commonjs from 'rollup-plugin-commonjs';

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()
	],
	external: [ 'src/index.js', 'magic-string' ],
	paths: {
		'src/index.js': '../compiler/svelte.js'
	},
	sourceMap: true
};

@@ -1,12 +1,42 @@
+import * as path from 'path';%0A
 import nodeR
@@ -363,16 +363,30 @@
 ernal: %5B
+ path.resolve(
  'src/in
@@ -392,16 +392,18 @@
 ndex.js'
+ )
 , 'magic
@@ -426,16 +426,32 @@
 hs: %7B%0A%09%09
+%5B path.resolve( 
 'src/ind
@@ -456,16 +456,20 @@
 ndex.js'
+ ) %5D
 : '../co

resolve path to external-but-local dependency