plasmo
plasmo copied to clipboard
[BUG] Installing React will omit all Vue files from processing
What happened?
I started out project as VueJS for Options.vue
etc.
Upon learning that Plasmo does not yet implement Vue HMR for CS UI, I decided to switch to React. After pnpm install react-dom react
the build works with cs.tsx
file however all *.vue
files are gone missing.
I suspect there is a check somewhere that decides what library will be used and only allows that one library at the time. I'd like to use both React and Vue for CS UI and Options pages respectively.
As a similar topic, I'd like to mention that Parcel appears to support Vue HMR: https://parceljs.org/languages/vue/
Parcel uses the official Vue SFC compiler, which supports HMR out of the box so you'll have a fast, reactive development experience. See Hot reloading for more details about HMR in Parcel.
Perhaps it's easy to add it. Cheers!
Version
Latest
What OS are you seeing the problem on?
MacOSX
What browsers are you seeing the problem on?
Chrome
Relevant log output
No errors are ever shown even with `--verbose` flag.
(OPTIONAL) Contribution
- [ ] I would like to fix this BUG via a PR
Code of Conduct
- [X] I agree to follow this project's Code of Conduct
- [X] I checked the current issues for duplicate problems.
This might be it https://github.com/PlasmoHQ/plasmo/blob/53aac96ada3dbdb7abb0afa39d3eeac5006ce5fc/core/parcel-runtime/src/index.ts#L39C2-L39C2
Being able to use React and Vue for writing options and popup pages, respectively, would greatly reduce the stress of migration.