https://github.com/smapiot/piral-cli-parcel2
Packages for the piral-cli-parcel2 bundler plugin.
https://github.com/smapiot/piral-cli-parcel2
build bundler frontends js micro microfrontends parcel parcel2 piral piral-cli plugin
Last synced: 25 days ago
JSON representation
Packages for the piral-cli-parcel2 bundler plugin.
- Host: GitHub
- URL: https://github.com/smapiot/piral-cli-parcel2
- Owner: smapiot
- License: mit
- Created: 2022-02-03T17:10:42.000Z (about 4 years ago)
- Default Branch: develop
- Last Pushed: 2024-12-26T21:35:30.000Z (about 1 year ago)
- Last Synced: 2025-08-27T08:33:51.827Z (6 months ago)
- Topics: build, bundler, frontends, js, micro, microfrontends, parcel, parcel2, piral, piral-cli, plugin
- Language: TypeScript
- Homepage: https://docs.piral.io
- Size: 642 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: .github/CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
[](https://piral.io)
# piral-cli-parcel2 ยท [](https://smapiot.visualstudio.com/piral-pipelines/_build/latest?definitionId=106&branchName=develop) 
The `piral-cli` plugin for using `parcel` (v2) as bundler.
## Important Links
* ๐ข **[We are hiring!](https://smapiot.com/jobs)** - work with us on Piral, its ecosystem and our users
* ๐ [Website](https://piral.io/) - learn more about Piral
* ๐ [Documentation](https://docs.piral.io/) - everything to get started and master micro frontends
* ๐ **Help translating Piral!** - making PRs in the [documentation branch](https://github.com/smapiot/piral/tree/documentation)
* ๐ [Issue Tracker](https://github.com/smapiot/piral/issues) - report bugs or suggest new features
* ๐จ [Forums](https://stackoverflow.com/questions/tagged/piral) - use the community support on StackOverflow
* ๐ช [Community Chat](https://gitter.im/piral-io/community) - ask questions and provide answers in our Gitter room
## Status
- [x] Pilets (tested / working)
- [x] Codegen
- [x] Bundle Splitting
- [x] ESM output
- [x] CSS / SASS
- [x] Importmap references
- [x] Importmap bundles
- [ ] v0 format (not implemented)
- [ ] v1 format (not implemented)
- [x] v2 format
- [x] tsconfig changes
- [x] Building
- [x] Debugging
- [x] Reloading
- [x] Piral instances (tested / working)
- [x] Codegen
- [x] HTML entry point
- [x] Emulator build
- [x] Release build
- [x] tsconfig changes
- [x] Debugging
- [x] Reloading
Piral instances require changes:
1. `type="module"` in the `` of *index.html*
2. In the *package.json* we need to include `"@parcel/transformer-js": { "inlineEnvironment": true }`
3. In the *package.json* we need to include `"@parcel/resolver-default": { "packageExports": true }`
Pilets may also require changes:
1. Centrally shared dependencies have to be in the `dependencies` - not the `devDependencies` (e.g., move `react` from `devDependencies` to `dependencies`)
2. Parcel handles the JSX transform of React a bit different - you may need to configure `"jsxFactory": "React.createElement"` in the *tsconfig.json*
## License
This code is released using the MIT license. For more information see the [LICENSE file](LICENSE).