@pika/plugin-build-node

A @pika/pack plugin: Adds a Node.js distribution to your package, built & optimized to run on Node.js.


License
MIT
Install
npm install @pika/plugin-build-node@0.9.1

Documentation

@pika/pack plugins

This repo contains the official build plugins for @pika/pack.

  • Write your own plugin! @pika/pack can load build plugins from package name & relative path. Check out this GitHub template or any of the existing build plugins to get started writing your own!
  • Publish & Share your plugin! These official builders are just the start. Create a PR to add your community plugin to this list!

Official Plugins

Source Builders:

NOTE: Include a source builder early in your pipeline. Source builders take your project source code (ESNext, TS, etc.) and compile it to standard, ES2018 JavaScript. Other builders will then consume that standardized build to base their own work off of.

Distribution Builders:

WASM & Non-JS Builders:

Advanced Builders:

  • @pika/plugin-bundle-node: Creates a Node.js build with all code (including dependencies) bundled into a single file. Useful for CLIs.
  • @pika/plugin-bundle-web: Creates a ESM build with all code (including dependencies) bundled. Useful for unpkg & serving code directly to browsers.
  • @pika/plugin-simple-bin: Generates & configures a CLI wrapper to run your library from the command line.

Community Plugins