Registry / rollup-plugin-lux

rollup-plugin-lux

JSON →
library3.0.0jsnpmunverified

A Rollup plugin that ensures constructor.name remains correct after bundling Lux applications. Version 3.0.0 is the current stable release. It appends an Object.defineProperty call below each constructor that extends a Lux base class to preserve the class name, which would otherwise be lost due to Rollup's module bundling. This plugin is intended for internal use by the Lux framework and is not required for typical Lux users.

npm install rollup-plugin-lux
INSTALL
IMPORT
SIG · ROLLUP-PLUGIN-LUX
R
rollup-plugin-lux
javascriptv3.0.0
Install
Import
Disk
Pass rate
0/ 6
Env Coverage0 / 6
glibc
1822
musl
1822
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18223 runs
build_error
glibc
node 18223 runs
build_error
Code
Verified usage

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

default
import luxPlugin from 'rollup-plugin-lux'
const luxPlugin = require('rollup-plugin-lux')
ESM-only; named exports are not provided.
luxPlugin
import luxPlugin from 'rollup-plugin-lux'
The plugin is the default export.

Example Rollup configuration using the Lux plugin to preserve class names in bundled output.

// rollup.config.js import luxPlugin from 'rollup-plugin-lux'; export default { input: 'src/index.js', output: { file: 'dist/bundle.js', format: 'cjs' }, plugins: [ luxPlugin() ] };
Debug
Known issues
gotchaOnly works with classes that extend Lux base classes (e.g., Model, Controller). Custom classes without Lux superclass are unaffected.
fix
Ensure classes that need name preservation extend from a Lux class.
affects: >=1.0.0
Errors
Common errors & fixes
Error: Cannot find module 'rollup-plugin-lux'
Package not installed or not in node_modules.
fix
Run npm install rollup-plugin-lux --save-dev
TypeError: luxPlugin is not a function
Incorrect import style: using require() instead of default import.
fix
Use import luxPlugin from 'rollup-plugin-lux'
Upgrade
Version history
3.0.0latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
5 hits · last 30 days
node
4
OpenAI (training)
1
Resources
rollup-plugin-lux — npm install rollup-plugin-lux · libregistry