Replies: 1 comment
-
You can use conditions for loader rules now:
You can just a bunch of different conditions (like |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Goals
experimental.turbo.loaders
optionNon-Goals
No response
Background
I want to turn some Next.js plugins into turbopack loaders (https://github.com/remorses/elacca and https://github.com/Janpot/next-rpc) but it's not possible if you can't run the loader differently on server and client
Proposal
Run the loader 2 times for server and client, add a field
isServer
to the loader contextBeta Was this translation helpful? Give feedback.
All reactions