Package.json Import Conditions? #637
Answered
by
ClearScriptLib
chrisryanouellette
asked this question in
Q&A
|
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 |
Answered by
ClearScriptLib
Feb 20, 2025
Replies: 1 comment 1 reply
|
ClearScript doesn't support import resolution based on Good luck! |
1 reply
Answer selected by
chrisryanouellette
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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!