Vite Plugins with Remix Vite Build #9081
Unanswered
Code-ActiveMatrix
asked this question in
Q&A
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.
-
When adding an additional vite plugin to perform custom build steps, it appears that the before build rollup hook is called 4 times during the remix vite:build command. Upon testing the plugin is reinitialize at each stage and cannot save a hasRun state.
The plugin in question only needs to run 1 one time. Is there some setting or custom vite parameter that remix adds to the config that can determine what one of these stages is best to run the plugin?
Note* The plugin is a source generator and should run before any other transforms
Beta Was this translation helpful? Give feedback.
All reactions