We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
source
import SomeWorker from './some.worker.js' // via worker-loader import * as comlink from 'comlink' const someWorker = comlink.wrap(new SomeWorker())
generated js
reactHotLoader.register(someWorker, blabla)
What you are reporting: the register body try to get some props on someWorker, produced by comlink.wrap it's a Proxy. and errors like
register
comlink.wrap
Proxy
someWorker.name
comlink.expose(obj)
obj.name[Symbol.toPrimitives]()
be smart, don't wrap everything
the babel plugin is register ing all identifiers
React Hot Loader version:
does not matter.
The text was updated successfully, but these errors were encountered:
tried cold, that does not prevent reactHotLoader.register() code
cold
reactHotLoader.register()
Sorry, something went wrong.
Easy to reproduce 👍, I'll handle it.
theKashey
No branches or pull requests
Description
source
generated js
What you are reporting:
the
register
body try to get some props on someWorker, produced bycomlink.wrap
it's a
Proxy
. and errors likeregister
logic wantssomeWorker.name
comlink.expose(obj)
, comlink callobj.name[Symbol.toPrimitives]()
Expected behavior
be smart, don't wrap everything
Actual behavior
the babel plugin is
register
ing all identifiersEnvironment
React Hot Loader version:
does not matter.
The text was updated successfully, but these errors were encountered: