Custom vite plugin not working
See original GitHub issueI’m trying to install the vite-plugin-react-svg
plugin in a react storybook app and it doesn’t seem to work.
I’ve tried adding the plugin both to vite.config.js
and to .storybook/main.js
’s viteFinal
and nothing seems to have changed.
Any ideas how could I debug / solve this issue?
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Plugin API - Vite
Plugin API #. Vite plugins extends Rollup's well-designed plugin interface with a few extra Vite-specific options. As a result, you can write a...
Read more >i use `define` in custom vite plugin, but it not work in runtime ...
i use `define` in custom vite plugin, and `JSON.stringify`. but it can't find `process` in runtime project. vite version is: 2.4.0 docs: ...
Read more >Building a plugin with Vite | Vue Mastery
... add custom functionality on top of Vite to solve a particular problem. For example, Astro uses a Vite plugin to resolve .astro...
Read more >Adding a plugin to vite - vue.js - Stack Overflow
This is probably not a problem with npm. There is likely additional logging output above. I also notice VS Code is giving me...
Read more >Building custom plugins for Vite - DEV Community
When I first tried it after working with Webpack (and 50-60 seconds project reload time) I immediately felt in love with it. In...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Just an observation, instead of:
plugins: [svgPlugin(), reactRefresh()],
you should useplugins: [...config.plugins, svgPlugin(), reactRefresh()],
Otherwise you override the default plugins configuration
@benglewis can you please open a new issue with all the details so we can help?