Nowa Core Bundler

raw JSON →
2.0.0-alpha.6 verified Sat Apr 25 auth: no javascript

Nowa Core Bundler is a command-line tool for bundling Nowa web applications. As of version 2.0.0-alpha.6, it is in early alpha with incomplete features (e.g., internationalization, component configuration). It uses yargs for CLI command parsing and likely integrates with webpack internally. This package is intended for internal use by Nowa projects and may not be suitable for general consumption due to its alpha status and limited documentation.

error Error: Cannot find module 'yargs'
cause yargs is a peer dependency not installed automatically
fix
npm install yargs --save
error TypeError: nowa is not a function
cause Default import does not exist; package has named exports only
fix
import { CLI } from 'nowa-core-bundler'
breaking Version 2.x is a complete rewrite and API incompatible with 1.x
fix Refer to migration guide if upgrading from 1.x
deprecated This package is in alpha and may change without notice
fix Pin to a specific version if using in production
gotcha CLI commands are defined via yargs; 'hello' and 'world' are examples but may not be fully implemented
fix Run 'nowa-core-bundler --help' to see available commands
npm install nowa-core-bundler
yarn add nowa-core-bundler
pnpm add nowa-core-bundler

Shows how to import and use the package programmatically, or use the CLI command.

import nowa from 'nowa-core-bundler';
// This package is primarily used via CLI, but if using programmatically:
nowa().then(result => console.log(result)).catch(err => console.error(err));
// Alternatively, use CLI: npx nowa-core-bundler hello