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
We're experimenting with using radpack with rollup for module federation in in a node.js application and we're having problems when requiring/importing node.js built-in modules, in particular worker_threads:
The traceback points at this line of code in radpack rollup plugin which as far as I can read is choking because it can't find the index for that package in the registry map.
Did we do something wrong or is there a way to tell the process to defer resolution of that package to runtime or something else that would solve this?
The text was updated successfully, but these errors were encountered:
This is somewhat by design, as by default radpack libraries built with the rollup plugin are meant to be universal (work on the client and sever). As a workaround, try using @rollup/plugin-node-resolve with preferBuiltins as true and use rollup-plugin-external-globals with a configuration to use the available global.require that will bypass rollup's default behavior.
We're experimenting with using radpack with rollup for module federation in in a node.js application and we're having problems when requiring/importing node.js built-in modules, in particular
worker_threads
:The traceback points at this line of code in radpack rollup plugin which as far as I can read is choking because it can't find the index for that package in the registry map.
Did we do something wrong or is there a way to tell the process to defer resolution of that package to runtime or something else that would solve this?
The text was updated successfully, but these errors were encountered: