Skip to content

Commit

Permalink
Clean up bundle scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacroldan committed Jun 11, 2024
1 parent 81b5c6f commit 90aabf8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions packages/cli/bin/bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -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]

Expand All @@ -49,7 +47,7 @@ esBuild({
},
inject: ['../../bin/bundling/cjs-shims.js'],
external,
sourcemap: generateSourcemaps,
sourcemap: true,
loader: {'.node': 'copy'},
splitting: true,
plugins: [
Expand Down
4 changes: 1 addition & 3 deletions packages/create-app/bin/bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -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]

Expand All @@ -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'},
Expand Down

0 comments on commit 90aabf8

Please sign in to comment.