Registry / devops / luao-rollup

luao-rollup

JSON →
library1.1.6jsnpmunverified

A Rollup-based build tool for packaging Luao projects, version 1.1.6. Provides a `buildReact` function and a configuration file (`luao.rollup-config.js`) for customizing ESM/UMD output, minification, Babel type (React or Node), and HTML file removal. The package is primarily for Luao developers and is not widely used. It ships TypeScript types. Release cadence is unclear. Key differentiator: tailored for Luao project build setups with simple configuration.

npm install luao-rollup
INSTALL
IMPORT
SIG · LUAO-ROLLUP
L
luao-rollup
devopsjavascriptv1.1.6
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

buildReact
import { buildReact } from 'luao-rollup';
import buildReact from 'luao-rollup';
buildReact is a named export, not default.
luao.rollup-config.js
// Use a configuration file `luao.rollup-config.js` in your project root. Parse via `import config from './luao.rollup-config.js'`
Attempting to import as `import { config } from 'luao-rollup'`
Configuration is a separate file, not exported from the package.
buildReact (CommonJS)
const { buildReact } = require('luao-rollup');
const buildReact = require('luao-rollup');
Use destructuring in CommonJS.

Shows how to import buildReact and configure with a config file for building a React project.

import { buildReact } from 'luao-rollup'; // Create a configuration file 'luao.rollup-config.js' in root: export default { removeHtmlFile: true, codeBabelType: 'React', esm: { type: 'rollup', minify: false, importLibToEs: true, dir: 'dist', }, umd: false, }; // Then run build: buildReact();
Debug
Known issues
gotchaConfiguration file must be named exactly 'luao.rollup-config.js' at project root; otherwise the build may fail silently.
fix
Create a file named 'luao.rollup-config.js' in your project root.
affects: *
deprecatedThe 'codeBabelType' option defaults to 'React'; setting it to 'node' may not be fully supported.
fix
Use 'React' for React projects or verify 'node' functionality.
affects: *
gotchaUsing `import { buildReact } from 'luao-rollup'` requires ESM setup; CommonJS projects must use require.
fix
For CommonJS: const { buildReact } = require('luao-rollup');
affects: >=1.0
Errors
Common errors & fixes
Error: Cannot find module 'luao-rollup'
Package not installed or import path incorrect.
fix
Install package: npm install luao-rollup
SyntaxError: Unexpected token 'export'
Using ESM syntax in a CommonJS environment without proper configuration.
fix
Use require: const { buildReact } = require('luao-rollup'); or set module type in package.json.
Upgrade
Version history
1.1.6latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
5 hits · last 30 days
node
4
Amazon
1
Resources
luao-rollup — npm install luao-rollup · libregistry