# Very early support of Parcel bundler in Aurelia 2

**URL:** https://discourse.aurelia.io/t/very-early-support-of-parcel-bundler-in-aurelia-2/4722
**Category:** Blog Posts
**Created:** [April 8, 2022, 10:58am UTC](https://discourse.aurelia.io/t/very-early-support-of-parcel-bundler-in-aurelia-2/4722 "2022-04-08T10:58:37Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![huochunpeng](https://avatars.discourse-cdn.com/v4/letter/h/49beb7/32.png) [@huochunpeng](https://discourse.aurelia.io/u/huochunpeng)
#### Post date: [April 8, 2022, 10:58am UTC](https://discourse.aurelia.io/t/very-early-support-of-parcel-bundler-in-aurelia-2/4722/1 "2022-04-08T10:58:37Z")

</div>

For Parcel lover, Aurelia 2’s Parcel support has reached playable state. Have fun!

> <https://github.com/aurelia/new/pull/74>
>
> Test with \`npx makes aurelia/new#parcel\`.
> 
> Skeleton with direct router is outd…ated since we had made some changes to our router(s). That's another story.
> 
> \* \[x\] Basic babel and typescript skeletons.
> \* \[x\] ShadowDOM support.
> \* \[x\] CSS modules support.
> \* \[\] Unit tests setup.
> \* \[\] E2E tests setup.
> \* \[\] Router skeleton. Blocked right now due to outdated setup.

To try it, use the “parcel” branch. Note only Jest works for unit tests right now.

```
npx makes aurelia/new#parcel

```

You have to choose “Custom Aurelia 2 Project” in the first question, “Application” in second one. A “Parcel” option will show up later when choosing bundler.

---

<div class="post-metadata">

### Author: ![milkshakeuk](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.aurelia.io/milkshakeuk/32/1207_2.png) [@milkshakeuk](https://discourse.aurelia.io/u/milkshakeuk)
#### Post date: [April 8, 2022, 12:38pm UTC](https://discourse.aurelia.io/t/very-early-support-of-parcel-bundler-in-aurelia-2/4722/2 "2022-04-08T12:38:30Z")

</div>

@huochunpeng good work … now we just need vite / rollup support. 😛

---

<div class="post-metadata">

### Author: ![huochunpeng](https://avatars.discourse-cdn.com/v4/letter/h/49beb7/32.png) [@huochunpeng](https://discourse.aurelia.io/u/huochunpeng)
#### Post date: [April 9, 2022, 1:35am UTC](https://discourse.aurelia.io/t/very-early-support-of-parcel-bundler-in-aurelia-2/4722/3 "2022-04-09T01:35:01Z")

</div>

The demo vite/rollup plugin (in `vite.config.js`) simply wraps our generic `@aurelia/plugin-conventions`. A full featured one will be bit longer than this (after I finishes work on Parcel 🙂).

This showcases how flexible is the design of Aurelia 2 toolings. If you check the source code of our integration with webpack/parcel/gulp, they are all thin wrappers over `@aurelia/plugin-conventions`.

> **[GitHub - 3cp/au2-vite: Aurelia 2 Vite demo (very basic)](https://github.com/3cp/au2-vite)**
>
> Aurelia 2 Vite demo (very basic). Contribute to 3cp/au2-vite development by creating an account on GitHub.

---

<div class="post-metadata">

### Author: ![milkshakeuk](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.aurelia.io/milkshakeuk/32/1207_2.png) [@milkshakeuk](https://discourse.aurelia.io/u/milkshakeuk)
#### Post date: [April 10, 2022, 1:05pm UTC](https://discourse.aurelia.io/t/very-early-support-of-parcel-bundler-in-aurelia-2/4722/4 "2022-04-10T13:05:20Z")

</div>

@huochunpeng does this work with the Aurelia decorators for the router etc?

---

<div class="post-metadata">

### Author: ![milkshakeuk](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.aurelia.io/milkshakeuk/32/1207_2.png) [@milkshakeuk](https://discourse.aurelia.io/u/milkshakeuk)
#### Post date: [April 10, 2022, 1:06pm UTC](https://discourse.aurelia.io/t/very-early-support-of-parcel-bundler-in-aurelia-2/4722/5 "2022-04-10T13:06:53Z")

</div>

> [@Vitejs support Aurelia2 and 1?](https://discourse.aurelia.io/t/vitejs-support-aurelia2-and-1/4654/5):
>
> @Sayan751 @rowellx68 @jwx @brandonseydel I tried to add the @route decorator and it didn’t work. what do we need to do to support vite? do we need to teach it something about aurelia v2?

---

<div class="post-metadata">

### Author: ![huochunpeng](https://avatars.discourse-cdn.com/v4/letter/h/49beb7/32.png) [@huochunpeng](https://discourse.aurelia.io/u/huochunpeng)
#### Post date: [April 10, 2022, 1:22pm UTC](https://discourse.aurelia.io/t/very-early-support-of-parcel-bundler-in-aurelia-2/4722/6 "2022-04-10T13:22:57Z")

</div>

I still need to catch up our latest router changes. Our skeleton on router is outdated too. There are many works to be done.

BTW, while vite dev mode is kind of working, the vite build command fails. I am not surprised as vite does separate dev and prod behaviors. There are some limitations in rollup I don’t know how to bypass right now.
