Comments (5)
Oh btw, the way I fixed my problem:
- change rollup-plugin-chrome-extension/package.json > to read
"prettier": "^2.3.2",
(latest stable) npm i prettier
at project level.- del
package-lock.json
npm i
at project level.
I didn't have prettier installed at proj level before, and that alone may have fixed it.
from chrome-extension-tools.
@ogrotten Weird. I've had that same problem, so I'm glad that you found a solution! Svelte is great for Chrome Extensions, isn't it?
I'll see if we can remove prettier. Thanks for isolating the problem.
from chrome-extension-tools.
The way I removed it isn't a fix. It results in the compiler complaining about "prettier is missing". I just did that to see if that instance of prettier was at the core of my problem, and it was.
Other than that, I dug around. . . there's only 1 real reference to it, and it appears to be rewriting the derived html output to be prettied for source. I tried to modify it, but I don't know all the ins n outs.
I don't think prettier is necessary tho... all modern browsers (even safari) will reformat and Pretty Print even the jankiest html source in their inspector.
And yeah . . . I'm liking svelte + extensions!
from chrome-extension-tools.
You're right tho, we didn't need it!
I was able to remove it, and prettier is only a dev dependency in the latest beta release.
I'm in the middle of adding MV3 support, but all the MV2 tests are passing, so it should work just fine.
from chrome-extension-tools.
Badass! Glad to have helped!
from chrome-extension-tools.
Related Issues (20)
- Assets loaded in content script result in 404 HOT 2
- Importing manifest.json in your app causes the CRXJS-generated manifest to be overwritten HOT 1
- match_origin_as_fallback field is missing in manifest schema HOT 1
- [crx:content-script-resources] Error: vite manifest is missing HOT 5
- Is there a method to simply copy without modifying the content_scripts?
- CSS in content_script is ignored. HOT 1
- crxjs does not support HTTPS flag in vite HOT 1
- Vite build for firefox
- inject.js error HOT 2
- Add React components interaction with content script example on the docs HOT 12
- Vite error in production build HOT 4
- Files imported with ?raw not updating after changes
- import of images in content_scripts are resulting in 404 HOT 3
- chrome.storage.local is undefined in content script
- `vite-plugin` breaks Vite dev server when `build.rollupOptions.input`s are present HOT 1
- Upgrade monorepo pnpm version to 8.x
- HRM and service script loader causes modules to be loaded twice with vite HOT 2
- Π‘anβt build a project with vite version newer than 5.0.11 HOT 10
- unable to run the dev script command HOT 3
- @crxjs/vite-plugin will break the build if build.rollupOptions.inputs added HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chrome-extension-tools.