diff --git a/packages/cli/bin/bundle.js b/packages/cli/bin/bundle.js index 89b12b55a0..bbc31e5eb9 100644 --- a/packages/cli/bin/bundle.js +++ b/packages/cli/bin/bundle.js @@ -22,8 +22,6 @@ const external = [ '@parcel/watcher', ] -const generateSourcemaps = true - // yoga wasm file is not bundled by esbuild, so we need to copy it manually const yogafile = glob.sync('../../node_modules/.pnpm/**/yoga.wasm')[0] @@ -49,7 +47,7 @@ esBuild({ }, inject: ['../../bin/bundling/cjs-shims.js'], external, - sourcemap: generateSourcemaps, + sourcemap: true, loader: {'.node': 'copy'}, splitting: true, plugins: [ diff --git a/packages/create-app/bin/bundle.js b/packages/create-app/bin/bundle.js index 12793d60c3..9254c5a93c 100644 --- a/packages/create-app/bin/bundle.js +++ b/packages/create-app/bin/bundle.js @@ -8,8 +8,6 @@ const external = [ 'react-devtools-core', ] -const generateSourcemaps = true - // yoga wasm file is not bundled by esbuild, so we need to copy it manually const yogafile = glob.sync('../../node_modules/.pnpm/**/yoga.wasm')[0] @@ -19,7 +17,7 @@ esBuild({ outdir: './dist', platform: 'node', format: 'esm', - sourcemap: generateSourcemaps, + sourcemap: true, inject: ['../../bin/bundling/cjs-shims.js'], external, loader: {'.node': 'copy'},