Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions packages/wp-build/lib/build.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -592,9 +592,9 @@ async function bundlePackage( packageName, options = {} ) {
const entryPoint = path.join( packageDir, exportPath );
const baseFileName = path.basename( fileName );

// Skip non-minified build for WASM-inlined workers (e.g., vips).
// These are ~16MB of base64-encoded WASM with no debugging value
// over the minified version.
// Skip non-minified build and sourcemaps for WASM-inlined workers
// (e.g., vips). These are mostly base64-encoded WASM with no
// debugging value over the minified version.
const isWasmWorker =
packageJson.wpWorkers &&
Object.keys( packageJson.wpWorkers ).some(
Expand All @@ -609,7 +609,7 @@ async function bundlePackage( packageName, options = {} ) {
`${ fileName }.min.js`
),
bundle: true,
sourcemap: true,
sourcemap: ! isWasmWorker,
format: 'esm',
target,
platform: 'browser',
Expand Down
Loading