Skip to content

Commit cd74519

Browse files
committed
bundle magic-string
1 parent 75392ff commit cd74519

File tree

3 files changed

+2
-8
lines changed

3 files changed

+2
-8
lines changed

package.json

Lines changed: 1 addition & 3 deletions
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

Lines changed: 0 additions & 4 deletions
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

Lines changed: 1 addition & 1 deletion
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)