Closed elwin013 closed 2 years ago
+1, am also experiencing this issue
@elwin013 thanks for your investigation and PR fix. I referenced the changes you made so I could patch @crxjs/vite-plugin
locally until (hopefully) this is merged and released officially.
I edited the same lines in the equivalent node_modules
files, and used https://github.com/ds300/patch-package to commit that to my repo as a stopgap so the build is up and running. 👌
@jacksteamdev Thanks! :tada:
Build tool
Vite
Where do you see the problem?
Describe the bug
Hello This looks like a consequence from https://github.com/crxjs/chrome-extension-tools/issues/282. In [1] during build paths are stripped from
content_scripts.matches
inmanifest.json
. Which is generally fine until somebody wants to use<all_urls>
which is "special pattern" described in Chrome docs [2] (and also for Firefox [3]).For
http
/https
this could be replaced with*://*/
but this will not matchfile
,ftp
orurn
scheme according to documentation.I will submit a small PR regarding this for this in next couple of minutes.
Reproduction
URL: https://github.com/elwin013/crxjs-vite-all_urls
Running
npm run dev
works.Running
npm run build
errors (log below in logs)Logs
System Info
Severity
blocking an upgrade