Skip to content

Commit

Permalink
Add human-readable chunk name for webpack
Browse files Browse the repository at this point in the history
  • Loading branch information
RReverser committed Dec 21, 2024
1 parent 6bf8191 commit 7fd82a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/workerHelpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export async function startWorkers(module, memory, builder) {
// Note: we could use `../../..` as the URL here to inline workerHelpers.js
// into the parent entry instead of creating another split point, but some
// bundlers don't support that in `new Worker` expressions.
const worker = new Worker(new URL('./workerHelpers.js', import.meta.url), {
const worker = new Worker(/* webpackChunkName: 'wasm-bindgen-rayon' */ new URL('./workerHelpers.js', import.meta.url), {
type: 'module'
});
worker.postMessage(workerInit);
Expand Down

0 comments on commit 7fd82a7

Please sign in to comment.