WebExtension manifest transformer for Parcel 2?
I tried to make one but it doesn't work: https://github.com/phaux/parcel-transformer-webextension/blob/master/src/WebExtensionTransformer.js When using asset.addURLDependency() it returns some kind of hash instead of a transformed filename. Everything except that works. Only the…
Static CSS-in-JS extraction - Help with Parcel2 plugin
How can this be done in a Parcel 2 plugin? I have it sort of working here in Parcel 1, but it doesn't work entirely. If CSS is set to final: true, things work but the CSS is not processed by PostCSS. If the CSS is not set to final, the CSS is correctly processed but the JS does…
Safe to put our own stuff in `Asset.cacheData`?
My asset class is currently putting some data in this.cacheData since it's a property that is copied from workers back to the main process (and I want to be able to access it in my bundler.on('bundled') handler. Is it safe to use cacheData this way?
Why are assets loaded more than once on initial startup?
Hi, I'm relatively new to Parcel and am working on my first plugin (tslinting TypeScript assets on load): When I run Parcel (and my plugin), every .ts file in my project appears to be loaded twice (i.e., the console output is displayed twice: The "asset is loaded twice" behavior…
Need help: How do I run compass with sass?
Hi, I'm compiling my CSS using sass (.scss). I would like to use the inline-image function provided by compass (http://compass-style.org/). How do I import compass to my parcel project? I can see that SASS is looking for .sassrc config file…
WebAssembly and Tree Shaking
I was incredibly pleased to discover that Parcel handles asynchronous imports of WebAssembly files. Amazing! Thank you so much! My only question is: is any tree shaking performed on the WebAssembly files? If I only import foo, bar, and baz, but my WebAssembly files defines (and…
'buildStart' event is not firing
The bundleStart event was added in version 1.9.0 of parcel (https://github.com/parcel-bundler/parcel/commit/304eb5f660cfa2630e34cc60848f875a15a3ed18). I tried using the event in a plugin I am working on and the event isn't firing. Other events such as bundled and buildEnd is…