Skip to content

Packages for the piral-cli-parcel2 bundler plugin.

License

Notifications You must be signed in to change notification settings

smapiot/piral-cli-parcel2

Repository files navigation

Piral Logo

piral-cli-parcel2 · Build Status GitHub License

The piral-cli plugin for using parcel (v2) as bundler.

Important Links

  • 📢 We are hiring! - work with us on Piral, its ecosystem and our users
  • 🌍 Website - learn more about Piral
  • 📖 Documentation - everything to get started and master micro frontends
  • 🉐 Help translating Piral! - making PRs in the documentation branch
  • 🐞 Issue Tracker - report bugs or suggest new features
  • 🗨 Forums - use the community support on StackOverflow
  • 👪 Community Chat - ask questions and provide answers in our Gitter room

Status

  • Pilets (tested / working)
    • Codegen
    • Bundle Splitting
    • ESM output
    • CSS / SASS
    • Importmap references
    • Importmap bundles
    • v0 format (not implemented)
    • v1 format (not implemented)
    • v2 format
    • tsconfig changes
    • Building
    • Debugging
    • Reloading
  • Piral instances (tested / working)
    • Codegen
    • HTML entry point
    • Emulator build
    • Release build
    • tsconfig changes
    • Debugging
    • Reloading

Piral instances require changes:

  1. type="module" in the <script> 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.