menu

Parcel

📦🚀 Blazing fast, zero configuration web application bundler

Channels
Chat
view-forward
# All channels
view-forward
# general
view-forward
# announcements
view-forward
# contributing
view-forward
# documentation
view-forward
# parcel2
view-forward
# plugins
view-forward
# rust
view-forward
Team
Posts
Members
Info

Parcel 2 plugin debugging with @parcel/logger

Can someone please provide some guidance on how to debug plugins? console.log does not produce any output, logger.{info, verbose, error} do not produce either. I attempt to log things like this: …

thumbsup
0
message-simple
3

A bit of guidance

I want to use the hashed class names generated in the css modules process while processing an HTML asset. Is this possible in a parcel plugin. Also, if it is, can you give me any pointers how to go about it?

thumbsup
0
message-simple
1

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…

thumbsup
0
message-simple
1

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…

thumbsup
0
message-simple
3

Temporarily disable plugin?

Is there a way to temporarily disable a plugin without having to uninstall it? I have a plugin that generates a service worker but I don't want the service worker to load during development (because it precaches everything).

thumbsup
0
message-simple
0

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?

thumbsup
0
message-simple
1

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…

thumbsup
0
message-simple
4

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…

thumbsup
0
message-simple
1

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…

thumbsup
0
message-simple
2

'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…

thumbsup
0
message-simple
10