closed-chain-ik-js icon indicating copy to clipboard operation
closed-chain-ik-js copied to clipboard

Worker: Use proper import syntax for loading WebWorkers

Open gkjohnson opened this issue 4 years ago • 2 comments

new Worker( new URL( './worker.js', import.meta.url ), { type: 'module' } );

gkjohnson avatar Dec 05 '20 07:12 gkjohnson

Parcel does not support this syntax, yet.

gkjohnson avatar Dec 28 '20 07:12 gkjohnson

Once it supports this consider switching to ESBuild for faster builds:

https://github.com/evanw/esbuild

gkjohnson avatar Dec 29 '20 02:12 gkjohnson