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.
npm install babel-preset-luxVerified import paths — ran on the pinned version, not inferred.
Shows minimal setup: install via npm, configure .babelrc with preset 'lux', and run Babel CLI to compile code.
If using Babel 7, switch to @babel/preset-env and include Lux-specific plugins manually.
Review release notes for removed plugins.
Install babel-core v6 alongside, not @babel/core.
Upgrade Node to >= 6.0 or use a different preset.
npm install --save-dev babel-preset-lux
Use babel-core v6 or find a Babel 7 compatible preset.