babel-preset-lux

raw JSON →
2.0.2 verified Sat Apr 25 auth: no javascript maintenance

A Babel preset that bundles all plugins required by Lux, a React-like framework by Postlight. Version 2.0.2 is the latest stable release, last updated in 2018. It targets Node >= 6.0 and includes preconfigured transforms for JSX, class properties, and other modern JavaScript features used by Lux. Compared to general-purpose presets like babel-preset-env, this preset is tightly coupled to Lux's specific plugin set and is not intended for standalone use. Maintenance is minimal as the Lux project itself appears inactive.

error Error: Cannot find module 'babel-preset-lux'
cause Package not installed or not saved to devDependencies.
fix
npm install --save-dev babel-preset-lux
error Plugin/Preset files are not allowed to export objects, only functions.
cause Using incompatible Babel version (likely >=7) with this preset.
fix
Use babel-core v6 or find a Babel 7 compatible preset.
deprecated babel-preset-lux is effectively unmaintained; use with modern Babel 7+ may break.
fix If using Babel 7, switch to @babel/preset-env and include Lux-specific plugins manually.
breaking Version 2.0.0 changed plugin set; update may break code relying on old transforms.
fix Review release notes for removed plugins.
gotcha Requires babel-core v6; incompatible with @babel/core.
fix Install babel-core v6 alongside, not @babel/core.
deprecated Node 6.0+ requirement; older Node versions not supported.
fix Upgrade Node to >= 6.0 or use a different preset.
npm install babel-preset-lux
yarn add babel-preset-lux
pnpm add babel-preset-lux

Shows minimal setup: install via npm, configure .babelrc with preset 'lux', and run Babel CLI to compile code.

// .babelrc
{
  "presets": ["lux"]
}

// Install
npm install --save-dev babel-preset-lux babel-core

// Then build
npx babel src --out-dir lib