File tree Expand file tree Collapse file tree 3 files changed +7
-2
lines changed
packages/repl/src/lib/workers Expand file tree Collapse file tree 3 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ ' @sveltejs/repl ' : patch
3+ ---
4+
5+ feat: make eval-ed compiler debuggable
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ self.addEventListener(
4242 // unpkg doesn't set the correct MIME type for .cjs files
4343 // https://github.com/mjackson/unpkg/issues/355
4444 const compiler = await fetch ( `${ svelte_url } /compiler.cjs` ) . then ( ( r ) => r . text ( ) ) ;
45- ( 0 , eval ) ( compiler ) ;
45+ ( 0 , eval ) ( compiler + '\n//# sourceURL=compiler.cjs@' + version ) ;
4646 } else {
4747 try {
4848 importScripts ( `${ svelte_url } /compiler.js` ) ;
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ self.addEventListener(
2424 // unpkg doesn't set the correct MIME type for .cjs files
2525 // https://github.com/mjackson/unpkg/issues/355
2626 const compiler = await fetch ( `${ svelte_url } /compiler.cjs` ) . then ( ( r ) => r . text ( ) ) ;
27- ( 0 , eval ) ( compiler ) ;
27+ ( 0 , eval ) ( compiler + '\n//# sourceURL=compiler.cjs@' + version ) ;
2828 } else {
2929 try {
3030 importScripts ( `${ svelte_url } /compiler.js` ) ;
You can’t perform that action at this time.
0 commit comments