Skip to content

Commit 0df3cf6

Browse files
authoredMar 27, 2017
Merge pull request #412 from sveltejs/gh-410
bundle magic-string
2 parents 75392ff + cd74519 commit 0df3cf6

File tree

3 files changed

+2
-8
lines changed

3 files changed

+2
-8
lines changed
 

‎package.json

+1-3
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,6 @@
3939
"url": "https://github.com/sveltejs/svelte/issues"
4040
},
4141
"homepage": "https://github.com/sveltejs/svelte#README",
42-
"dependencies": {
43-
"magic-string": "^0.19.0"
44-
},
4542
"devDependencies": {
4643
"acorn": "^4.0.4",
4744
"babel": "^6.23.0",
@@ -65,6 +62,7 @@
6562
"glob": "^7.1.1",
6663
"jsdom": "^9.9.1",
6764
"locate-character": "^2.0.0",
65+
"magic-string": "^0.19.0",
6866
"mocha": "^3.2.0",
6967
"node-resolve": "^1.3.3",
7068
"nyc": "^10.0.0",

‎rollup/rollup.config.main.js

-4
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,5 @@ export default {
2121
}
2222
})
2323
],
24-
external: [ 'magic-string' ],
25-
globals: {
26-
'magic-string': 'MagicString'
27-
},
2824
sourceMap: true
2925
};

‎rollup/rollup.config.ssr.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export default {
2020
}
2121
})
2222
],
23-
external: [ path.resolve( 'src/index.js' ), 'fs', 'path', 'magic-string' ],
23+
external: [ path.resolve( 'src/index.js' ), 'fs', 'path' ],
2424
paths: {
2525
[ path.resolve( 'src/index.js' ) ]: '../compiler/svelte.js'
2626
},

0 commit comments

Comments
 (0)
Please sign in to comment.