Custom (build time) plugins for turbopack #85465
andr3i1010
started this conversation in
Ideas
Replies: 0 comments
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.
-
Goals
A few examples that could be achieved with this:
Non-Goals
idk
Background
I have a custom webpack plugin that injects a custom banner at the top of js bundles:
Unfortunately, webpack is slow. I like turbopack way more since it compiles my entire codebase in less that 20 seconds.
Proposal
Define a plugin in next.config.ts, that defines an action, when it happens and what it does, then in turbopack it should pick up the registered plugin, then do something with it. I can't contribute to turbo itself, since i don't know any system level programming/rust at all.
Beta Was this translation helpful? Give feedback.
All reactions