@arcanejs/build-utils
v0.1.2
Published
Build helpers for ArcaneJS projects
Readme
@arcanejs/build-utils
Build utilities for ArcaneJS projects.
This package provides reusable build utilities for ArcaneJS projects.
Today it includes a frontend bundler with React Compiler enabled by default. Over time, additional Arcane build helpers can be added under the same package.
Install
npm install --save-dev @arcanejs/build-utilsCurrent CLI Utilities
Use arcane-build-frontend to build a browser entrypoint:
arcane-build-frontend \
--entry src/frontend.tsx \
--outfile dist/entrypoint.js \
--sourcemapOptional flags:
--condition <name>(repeatable): add custom resolver conditions (for example@arcanejs/sourcein monorepos)--watch: rebuild on file changes--minify: minify output--no-react-compiler: skip React Compiler transform
Current API
import {
buildArcaneFrontend,
watchArcaneFrontend,
} from '@arcanejs/build-utils';
await buildArcaneFrontend({
entry: 'src/frontend.tsx',
outfile: 'dist/entrypoint.js',
sourcemap: true,
});watchArcaneFrontend returns an esbuild BuildContext.
