Jack Steam
Jack Steam
If you are seeing "Waiting for service worker", it means that the extension is the development build. During development, Vite serves the background and extension page files from localhost, so...
We should change the "Waiting..." message to guide the developer to either start Vite or run the build command. This is a great first issue, anyone who is interested in...
Hey @Rookiewan 👋 Thanks for putting together this issue! This error happens when Vite adds the Vite client to the Vue component. CRXJS modifies the client to work in a...
@aptash Thanks for the detailed repro! Some questions: 1. What kind of terminal are you using? e.g., WSL, etc 2. This relative path looks strange. Is there a `dist` folder...
> HMR works in your tutorial with popup only though dist folder isn't updated after changes also HMR for the popup works differently than content scripts. RPCE does some magic...
This is the code that generates the `../../../../../dist` string: https://github.com/extend-chrome/rollup-plugin-chrome-extension/blob/5003541ab87417fe705b8ccc749b1a4ebc687102/src/node/plugin-fileWriter--events.ts#L103-L105 I'm curious about the values for `config.root` and `config.build.outDir`. You can get Vite to log these values in its resolved...
@Toumash Awesome! This makes sense. We need to normalize paths more aggressively. `config.root` starts with `C:/`, but not `config.build.outDir`, thus the weird relative path. What happens when you define all...
@saxoncameron I'm going to do a beta release later today! I gave it a test run with a Svelte project yesterday, I think things are mostly stable 🤞
Finally had some time to get this release done right! You can try it out on NPM 🚀 https://www.npmjs.com/package/@crxjs/vite-plugin/v/2.0.0-beta.1 This should fix some bugs, but there may be regressions I...
@evanb2 Thanks for the detailed example of an extension with a popup and a content script! Do you mind if I use it for a test? Looks like something is...