Skip to content

Commit

Permalink
fix(web): fixes #9561 - disables esbuild's keepNames setting
Browse files Browse the repository at this point in the history
  • Loading branch information
jahorton committed Nov 6, 2023
1 parent 5580ebb commit 5289776
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions common/web/lm-worker/build-bundler.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ await esbuild.build(embeddedWorkerBuildOptions);
const minifiedProfilingOptions = {
...embeddedWorkerBuildOptions,
minify: true,
keepNames: false, // Do NOT enable - will break under Android 5.0 / Chrome 35 environments!
metafile: true,
write: false // don't actually write the file.
}
Expand Down
2 changes: 1 addition & 1 deletion common/web/lm-worker/build-wrap-and-minify.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ if(MINIFY) {
sourcemap: 'external',
sourcesContent: DEBUG,
minify: true,
keepNames: true,
keepNames: false, // Do NOT enable - will break under Android 5.0 / Chrome 35 environments!
target: 'es5',
outfile: `build/lib/worker-main.polyfilled.min.js`
});
Expand Down

0 comments on commit 5289776

Please sign in to comment.