You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd like to use workers as easy as pie with enjoyable comlink proxy in NextJS or CRA apps. Currently you may find that users cannot easily configure workers in their apps. For example, see issues
Automatically bundle workers inside workers directory or files ending with .worker.js, .worker.ts. Webpack config needs to be adjusted to generate more entries for worker files.
Automatically replace import DataService from '../workers/dataService'; into:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Motivation
I'd like to use workers as easy as pie with enjoyable comlink proxy in NextJS or CRA apps. Currently you may find that users cannot easily configure workers in their apps. For example, see issues
#10899
#14051
Proposal
Automatically bundle workers inside
workers
directory or files ending with.worker.js
,.worker.ts
. Webpack config needs to be adjusted to generate more entries for worker files.Automatically replace
import DataService from '../workers/dataService';
into:Beta Was this translation helpful? Give feedback.
All reactions