File tree Expand file tree Collapse file tree 4 files changed +14
-4
lines changed
adapter-cloudflare-workers Expand file tree Collapse file tree 4 files changed +14
-4
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ ' @sveltejs/adapter-cloudflare ' : patch
3+ ' @sveltejs/adapter-cloudflare-workers ' : patch
4+ ' @sveltejs/adapter-netlify ' : patch
5+ ---
6+
7+ Generate sourcemaps for server-side functions when bundling with esbuild
Original file line number Diff line number Diff line change @@ -55,8 +55,9 @@ export default function (options = {}) {
5555 ) ;
5656
5757 await esbuild . build ( {
58- target : 'es2020' ,
5958 platform : 'browser' ,
59+ sourcemap : 'linked' ,
60+ target : 'es2020' ,
6061 ...options ,
6162 entryPoints : [ `${ tmp } /entry.js` ] ,
6263 outfile : main ,
Original file line number Diff line number Diff line change @@ -37,8 +37,9 @@ export default function (options = {}) {
3737 } ) ;
3838
3939 await esbuild . build ( {
40- target : 'es2020' ,
4140 platform : 'browser' ,
41+ sourcemap : 'linked' ,
42+ target : 'es2020' ,
4243 ...options ,
4344 entryPoints : [ `${ tmp } /_worker.js` ] ,
4445 outfile : `${ dest } /_worker.js` ,
Original file line number Diff line number Diff line change @@ -137,8 +137,9 @@ async function generate_edge_functions({ builder }) {
137137 outfile : '.netlify/edge-functions/render.js' ,
138138 bundle : true ,
139139 format : 'esm' ,
140- target : 'es2020' ,
141- platform : 'browser'
140+ platform : 'browser' ,
141+ sourcemap : 'linked' ,
142+ target : 'es2020'
142143 } ) ;
143144
144145 writeFileSync ( '.netlify/edge-functions/manifest.json' , JSON . stringify ( edge_manifest ) ) ;
You can’t perform that action at this time.
0 commit comments