Registry / devops / babel-preset-es2015-ie

babel-preset-es2015-ie

JSON →
library6.7.0jsnpmunverified

A Babel preset that includes all ES2015 plugins with additional transforms to ensure compatibility with Internet Explorer 9 and 10. Version 6.7.0 is the latest stable release, designed for Babel 6. It wraps the official babel-preset-es2015 and adds IE-specific polyfills or transforms for features like default parameters, destructuring, and spread operators that are not fully supported in older IE versions. Unlike the base preset, it targets IE>=9 specifically, making it suitable for legacy enterprise applications. The package is no longer actively maintained as Babel 6 is deprecated in favor of Babel 7 and @babel/preset-env.

npm install babel-preset-es2015-ie
INSTALL
IMPORT
SIG · BABEL-PRESET-ES201
B
babel-preset-es2015-ie
devopsjavascriptv6.7.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 18226 runs
build_error
glibc
node 18226 runs
build_error
Code
Verified usage

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

Default (as preset)
{ "presets": ["es2015-ie"] }
{ "presets": ["babel-preset-es2015-ie"] }
In .babelrc or Babel config, use the preset name without the 'babel-preset-' prefix.
Default (Node API)
require('babel-core').transform('code', { presets: ['es2015-ie'] })
var preset = require('babel-preset-es2015-ie'); require('babel-core').transform('code', { presets: [preset] })
When using the Node API, pass the preset name as a string, not the required module.
Via CLI
babel script.js --presets es2015-ie
babel script.js --presets babel-preset-es2015-ie
CLI also expects the short preset name.

Shows installation, configuration in .babelrc, and a basic ES2015 arrow function/map example that will be transpiled for IE9+.

// Install the preset // npm install --save-dev babel-preset-es2015-ie // .babelrc { "presets": ["es2015-ie"] } // Example ES2015 code (will be transpiled for IE9+) const sum = (a, b) => a + b; let numbers = [1, 2, 3]; let doubled = numbers.map(n => n * 2); console.log(doubled);
Debug
Known issues
deprecatedbabel-preset-es2015-ie is deprecated; Babel 6 is end-of-life. Use @babel/preset-env with IE targets instead.
fix
Migrate to Babel 7 and use @babel/preset-env with targets: { ie: '9' }.
affects: >=0.0.0
gotchaThe preset does not include a polyfill for Promise, Map, Set, etc. Those must be added separately (e.g., babel-polyfill).
fix
Add import 'babel-polyfill' or configure core-js polyfills in Babel 7.
affects: >=6.0.0
breakingThis preset is designed for Babel 6 only. It will not work with Babel 7 (which uses @babel/ scoped packages).
fix
Upgrade to @babel/preset-env and use Babel 7.
affects: >=0.0.0
Errors
Common errors & fixes
Error: Couldn't find preset "es2015-ie" relative to directory
The preset is not installed or not in node_modules.
fix
Run npm install --save-dev babel-preset-es2015-ie
Error: Requires Babel "^6.0.0-0" but was loaded with "7.x".
Using the preset with Babel 7 instead of Babel 6.
fix
Downgrade to Babel 6 or migrate to @babel/preset-env.
SyntaxError: Unexpected token import (or arrow function etc.)
The preset is correctly configured but some modern syntax (e.g., dynamic imports) is not covered.
fix
Add additional presets or plugins (e.g., babel-plugin-syntax-dynamic-import).
Upgrade
Version history
6.7.0latest on npm
Audit
Dependencies
babel-corerequiredBabel 6 core required to load presets
babel-preset-es2015requiredThis preset wraps babel-preset-es2015 and adds IE-specific transforms
Agent activity
10 hits · last 30 days
node
8
OpenAI (training)
1
Resources
babel-preset-es2015-ie — npm install babel-preset-es2015-ie · libregistry