Jack Steam
                                            Jack Steam
                                        
                                    Vite 3 support is available for testing in the current beta release: `@crxjs/[email protected]`
@JoeyDoey With the beta version of CRXJS, React works out of the box. I've verified that the Vite config below works with `npm init vite@latest` and `npm i @crxjs/vite-plugin@beta @types/chrome...
> Which makes me think that I probably have to make some changes to my code (or maybe just config) @AntonOfTheWoods You are right! This error was caused by certain...
Looking at the code, `legalComments` does seem to be passed to esbuild: https://github.com/egoist/rollup-plugin-esbuild/blob/875aed8d6e08d5573c0fa4d0d9402850cf3ac140/src/index.ts#L173-L184 Comments with `@preserve` are being removed for me too, but IDK if it's a problem with this...
A relevant comment by @avi12 from [another issue](https://github.com/extend-chrome/rollup-plugin-chrome-extension/issues/60#issuecomment-752077425), with an example repo: > But, for a strange reason, not on Firefox (loaded via web-ext) > Example repo: https://github.com/avi12/steam-id-finder/tree/main
The issue here is that Firefox doesn't support dynamic imports in web extensions, which we use to support Rollup's code splitting feature. What we need to do is bundle each...
This problem will not be a issue once [Firefox 89 is released](https://github.com/extend-chrome/rollup-plugin-chrome-extension#%EF%B8%8F-what-about-firefox-support) If there are any compatibility problems that occur, we will look into it once 89 hits the stable...
Firefox has added support for dynamic import in content scripts and now it may be relatively trivial to create Firefox compatible builds. There is still work to be done. Thanks...
RPCE v4 is ready for testing, you can check out [this guide to get started with React](https://dev.to/jacksteamdev/create-a-vite-react-chrome-extension-in-90-seconds-27k1-temp-slug-183199?preview=579c50cd581c92738b08a9ae6850d203f3997be016d1c192c91f80c60b881cb9a3fca0a0a947c0a3af4b05f541b06c563d0abcfd146b01403cfce583). I haven't tested it in Firefox, but I'd bet the new build works....
@mnoorenberghe True, that comment was before we dropped MV2 support for v4. Covering all the edge cases gets pretty complex! 😅 Hopefully Firefox releases MV3 support sooner than later! I'd...