Registry / llm-agents / babel-preset-stage-0

babel-preset-stage-0

JSON →
library6.24.1jsnpmunverified

Babel preset that enables all stage 0 (strawman) JavaScript proposal plugins. Version 6.24.1 is the latest stable release; this package is part of Babel 6 and has been deprecated in favor of individual proposal plugins or @babel/preset-env with targets. It includes plugins for syntactic proposals like do-expressions, pipeline operator, and throw expressions. No longer maintained; users should migrate to Babel 7/8 and use specific plugins.

npm install babel-preset-stage-0
INSTALL
IMPORT
SIG · BABEL-PRESET-STAGE
B
babel-preset-stage-0
llm-agentsjavascriptv6.24.1
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 18226 runs
build_error
glibc
node 18226 runs
build_error
Code
Verified usage

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

preset-stage-0
require('babel-preset-stage-0')
import presets from 'babel-preset-stage-0'
CommonJS require is used; ESM import not supported.
default
module.exports = { presets: ['stage-0'] }
module.exports = { presets: ['babel-preset-stage-0'] }
Preset names can be shorthand; no need for full package name in .babelrc.
transform
babel.transform(code, { presets: ['stage-0'] })
babel.transform(code, { presets: [require('babel-preset-stage-0')] })
Passing preset name as string is idiomatic.

Shows how to install and configure the stage-0 preset, then use a pipeline operator (stage-0 proposal).

// Install: npm install --save-dev babel-preset-stage-0 // .babelrc { "presets": ["stage-0"] } // Example JS with stage-0 features // Pipeline operator: 2 |> double |> square const double = x => x * 2; const square = x => x * x; const result = 2 |> double |> square; console.log(result); // 16
Debug
Known issues
deprecatedbabel-preset-stage-0 is deprecated in Babel 7+
fix
Use @babel/preset-env with specific targets or individual plugins.
affects: >=7.0.0
breakingStage presets are removed in Babel 8
fix
Migrate to @babel/preset-env and explicit plugin configuration.
affects: >=8.0.0
gotchaIncluding stage-0 enables unstable proposals that may change or be removed
fix
Pin exact Babel version and update proposals carefully.
affects: all
deprecatedStage presets depend on deprecated babel-preset-stage-1, -2, -3
fix
Remove stage presets and use individual plugins for needed proposals.
affects: all
Errors
Common errors & fixes
Error: Cannot find module 'babel-preset-stage-0'
Package not installed or version mismatch
fix
npm install --save-dev babel-preset-stage-0@6.24.1
Error: Plugin/Preset files are not allowed to export objects, only functions.
Using an older Babel 6 preset with Babel 7
fix
Upgrade to @babel/preset-stage-0 or use Babel 6
TypeError: (intermediate value) is not a function
Babel 7 dropped support for stage presets
fix
Migrate to @babel/preset-env and individual plugins
Upgrade
Version history
6.24.1latest on npm
Audit
Dependencies
babel-preset-stage-1requiredstage-0 includes stage-1, stage-2, and stage-3 presets
Agent activity
18 hits · last 30 days
node
16
OpenAI (training)
1
Resources
babel-preset-stage-0 — npm install babel-preset-stage-0 · libregistry