Registry / babel-preset-stage-3

babel-preset-stage-3

JSON →
library6.24.1jsnpmunverified

Babel preset that includes all stage 3 (candidate) ECMAScript proposal plugins. Version 6.24.1 is the last stable release; the package has been deprecated in favor of using individual plugins or preset-env. It was originally part of the Babel 6 ecosystem and is rarely updated. For modern projects, use @babel/preset-env with appropriate targets instead of stage presets.

npm install babel-preset-stage-3
INSTALL
IMPORT
SIG · BABEL-PRESET-STAGE
B
babel-preset-stage-3
javascriptv6.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
module.exports = { presets: ['stage-3'] };
import { presets } from 'babel-preset-stage-3'
The preset is a function, not an object. Use as string or require default.
default
require('babel-preset-stage-3')({ useBuiltIns: false })
require('babel-preset-stage-3').default
The module exports a function directly; no default export.
plugins
const preset = require('babel-preset-stage-3'); console.log(preset.plugins);
const { plugins } = require('babel-preset-stage-3');
Preset function returns an object; accessing .plugins is valid after call.

Basic setup of babel-preset-stage-3 in .babelrc and usage via Node API and CLI.

// .babelrc { "presets": ["stage-3"] } // or via Node API const babel = require('babel-core'); babel.transform('code', { presets: ['stage-3'] }); // then compile npx babel src --out-dir lib
Debug
Known issues
deprecatedStage presets (including stage-3) are deprecated in Babel 7+.
fix
Use @babel/preset-env with appropriate targets or individual plugins like @babel/plugin-transform-object-rest-spread.
affects: >=7.0.0
breakingBabel 6 is no longer maintained; babel-preset-stage-3 only works with Babel 6.
fix
Upgrade to Babel 7+ and replace with @babel/preset-env or specific plugins.
affects: >=7.0.0
gotchaThe preset includes object rest/spread, async functions, etc. which may conflict with other presets or transform settings.
fix
Avoid mixing stage presets with preset-env that also includes those transforms. Prefer using only preset-env.
affects: >=0.0.0
Errors
Common errors & fixes
Error: Plugin 0 specified in "base" provided an invalid property of "default"
Incorrectly importing the preset as default export instead of calling it as a function.
fix
Use require('babel-preset-stage-3') directly, not require(...).default.
Error: Cannot find module 'babel-preset-stage-3'
The package wasn't installed or Babel version mismatch (stage-3 only works with Babel 6).
fix
Run npm install --save-dev babel-preset-stage-3 and ensure Babel 6 is used.
ReferenceError: regeneratorRuntime is not defined
Stage-3 preset includes async/await transform which requires regenerator runtime.
fix
Install and include babel-polyfill or babel-runtime in your setup.
Upgrade
Version history
6.24.1latest on npm
Audit
Dependencies
babel-preset-stage-3requiredSelf-referential; the preset itself contains plugins like babel-plugin-transform-object-rest-spread, etc.
Agent activity
4 hits · last 30 days
node
4
Resources
babel-preset-stage-3 — npm install babel-preset-stage-3 · libregistry