Skip to content

Commit

Permalink
added strip-debug
Browse files Browse the repository at this point in the history
  • Loading branch information
calvinrp committed Nov 8, 2024
1 parent b2ea7b7 commit b9a8f25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cmd/opt.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export async function optimizeComponent (componentBytes, opts) {
spinner.text = spinnerText();
}

const args = opts?.optArgs ? [...opts.optArgs] : ['-Oz', '--low-memory-unused', '--enable-bulk-memory'];
const args = opts?.optArgs ? [...opts.optArgs] : ['-Oz', '--low-memory-unused', '--enable-bulk-memory', '--strip-debug'];
if (opts?.asyncMode === 'asyncify') args.push('--asyncify');

const optimizedCoreModules = await Promise.all(coreModules.map(async ([coreModuleStart, coreModuleEnd]) => {
Expand Down

0 comments on commit b9a8f25

Please sign in to comment.