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

Building for multiple targets

Hi, It's my first time using parcel. I was hoping to get it to build a NodeJS package that could also be used in the browser (i.e. by having built files that I can import) and saw that the intro mentioned that Parcel could help with that. …

thumbsup
0
message-simple
0

Much larger bundle sizes with v2 than v1

From what I gather, tree shaking is now enabled by default in v2 and so I was very much surprised to find out that every single one of my trials / samples has produced bundles which are at least 2.5x - 4x(!) larger than what parcel 1.12.4 with --experimental-scope-hoisting…

thumbsup
0
message-simple
0

Inlining SVG with @parcel/transformer-inline-string

I've been trying to inline SVG files into my TypeScript sources as string using the following .parcelrc config, but either I'm misunderstanding the purpose of this transformer or something's broken / not getting picked up... In the TS source, I'm then using: However, when…

thumbsup
0
message-simple
8

Does adding support for new file types require resolver & transformer?

I am trying to create a plugin for reading Markdown files and I can only get it to work with both a resolver and a transformer. It looks a bit weird because I cannot implement both in the same package due to the naming restrictions. Is it true that for supporting a new file…

thumbsup
0
message-simple
4

Tips for newbie on implementing transformers?

The primary objective is to implement the "transform" method, but what are the objects that are passed into it (asset, options, and config) and how are the typically used? Are their existing docs for this? Are there tests setup for existing transformers?

thumbsup
0
message-simple
1

[Solved] Can not build: @parcel/optimizer-terser: Unexpected token: operator (?)

Error: Command failed: parcel build src/index.html --no-cache @parcel/optimizer-terser: Unexpected token: operator (?) SyntaxError: Unexpected token: operator (?)

thumbsup
0
message-simple
7

"Name already registered with serializer" error

Wanted to try parcel2 with an existing React/Typescript project but I get the following error. Any ideas?

thumbsup
0
message-simple
1

How to set module global name for parcel 2?

thumbsup
0
message-simple
4

Creating a transformer that wraps CSS in JS for lit-element

I would like to write a Parcel 2 plugin to take CSS and wrap it in Javascript. I am using lit-element to write web components. To encapsulate CSS into the shadow DOM, I need my import Styles from './styles.css' to result in Styles containing the CSS compiled into a string. I…

thumbsup
0
message-simple
2

Parcel flags?

I am trying to customize output file and directory does ---out-dir and -out-file not exist?

thumbsup
0
message-simple
2