From cd74519a12fe2345602f6d348bd7d64f2c1f4c4f Mon Sep 17 00:00:00 2001 From: Rich-Harris Date: Mon, 27 Mar 2017 08:02:38 -0400 Subject: [PATCH] bundle magic-string --- package.json | 4 +--- rollup/rollup.config.main.js | 4 ---- rollup/rollup.config.ssr.js | 2 +- 3 files changed, 2 insertions(+), 8 deletions(-) diff --git a/package.json b/package.json index 2f80203233..eb775828e3 100644 --- a/package.json +++ b/package.json @@ -39,9 +39,6 @@ "url": "https://github.com/sveltejs/svelte/issues" }, "homepage": "https://github.com/sveltejs/svelte#README", - "dependencies": { - "magic-string": "^0.19.0" - }, "devDependencies": { "acorn": "^4.0.4", "babel": "^6.23.0", @@ -65,6 +62,7 @@ "glob": "^7.1.1", "jsdom": "^9.9.1", "locate-character": "^2.0.0", + "magic-string": "^0.19.0", "mocha": "^3.2.0", "node-resolve": "^1.3.3", "nyc": "^10.0.0", diff --git a/rollup/rollup.config.main.js b/rollup/rollup.config.main.js index 334ead6860..5b03263502 100644 --- a/rollup/rollup.config.main.js +++ b/rollup/rollup.config.main.js @@ -21,9 +21,5 @@ export default { } }) ], - external: [ 'magic-string' ], - globals: { - 'magic-string': 'MagicString' - }, sourceMap: true }; diff --git a/rollup/rollup.config.ssr.js b/rollup/rollup.config.ssr.js index 6d16a185ae..832b9b0dc0 100644 --- a/rollup/rollup.config.ssr.js +++ b/rollup/rollup.config.ssr.js @@ -20,7 +20,7 @@ export default { } }) ], - external: [ path.resolve( 'src/index.js' ), 'fs', 'path', 'magic-string' ], + external: [ path.resolve( 'src/index.js' ), 'fs', 'path' ], paths: { [ path.resolve( 'src/index.js' ) ]: '../compiler/svelte.js' },