Package.json Import Conditions? #637
-
When importing other packages is there a way to simulate the NodeJS package resolution? Would it be possible in theory to import based on a runtime condition? For more context I am trying to setup React Server Components with ClearScript and the only thing I am missing is using the With WebPack's |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
ClearScript doesn't support import resolution based on Good luck! |
Beta Was this translation helpful? Give feedback.
Hi @chrisryanouellette,
ClearScript doesn't support import resolution based on
package.json
, but it should be possible to simulate it via a custom document loader. With full control over the loader's operation, you should be able to use whatever conditions you require.Good luck!