-
-
Notifications
You must be signed in to change notification settings - Fork 10.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build process does not run my custom Vite plugin #13078
Comments
I just tried replicating this issue using rollup-plugin-dedent, which I published yesterday. I'm using the plugin in Vite, and it also uses |
ok, then maybe it's a strange interaction with the pnpm monorepo setup we are using. I cleaned up some things so, in this branch: https://github.com/plone/volto/tree/7 It's using RR 7.1.5, the command This branch: is created from the previous but using RR 7.2.0 and it's failing (see CI red actions): https://github.com/plone/volto/actions/runs/13461807540/job/37618720542?pr=6774 for the same command. As said, I tried to debug it, and the code does not reach the plugin in build mode whereas in dev it does. |
@sneridagh Are you able to create a minimal repro? Looking at your CI output and reproducing locally, it looks like your |
@markdalgleish hey, thanks for taking a look. I can put together an even minimum version, in a separated repo, but the error given will be the same, since the file that is expected to be generated, it won't be generated. Then RR7 will complain about the |
I'm using React Router as a...
framework
Reproduction
I have a custom Vite Plugin that generates a file with additional routes for my RR7 app. For more information, this Vite plugin is a
pre
plugin.It worked well until we updated to 7.2.0 where it broke when building. In dev it works well. In order to prove that the plugin is just ignored I even broke the Vite plugin code, and it did not errored (while in dev did).
I'm sorry right now I can't post a reproduction repo, also it would be hard to explain in detail what the Vite plugin does and how to test that it does not work. If really needed I can try, but I'm hoping that this rings some bells.
When 7.1.5 is used, it works perfectly, as it used to.
System Info
Used Package Manager
pnpm
Expected Behavior
My custom Vite plugin is executed in build mode. In 7.1.5 is used, it works perfectly, as it used to.
Actual Behavior
My custom Vite plugin seems that does not run in build mode, but it does in dev mode.
The text was updated successfully, but these errors were encountered: