Registry / ima-babel6-polyfill

ima-babel6-polyfill

JSON →
library0.12.0jsnpmunverified

Provides a polyfill for IE9 and IE10 to fix super-constructor calls in the Babel 6 runtime, addressing transpilation issues that affect applications using Babel 6 class inheritance on legacy Internet Explorer versions. Version 0.12.0 is the latest stable release, but the package is in maintenance mode and not actively developed. It is part of the IMA.js ecosystem and intended for use with IMA.js applications, though it can be used as a standalone fix. Alternatives include using Babel 7's @babel/polyfill or core-js for broader IE support.

npm install ima-babel6-polyfill
INSTALL
IMPORT
SIG · IMA-BABEL6-POLYFIL
I
ima-babel6-polyfill
javascriptv0.12.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.

imaBabel6Polyfill
import 'ima-babel6-polyfill';
const imaBabel6Polyfill = require('ima-babel6-polyfill');
This is a side-effect polyfill; import without binding. Use ESM import for bundlers.
require polyfill
require('ima-babel6-polyfill');
const polyfill = require('ima-babel6-polyfill');
For CommonJS environments, use bare require. Do not assign to a variable as it returns undefined.

Shows how to import the polyfill and verifies that super constructor works in IE9/10.

// Ensure this is imported before any other code import 'ima-babel6-polyfill'; class Parent { constructor() { this.x = 1; } } class Child extends Parent { constructor() { super(); this.y = 2; } } const child = new Child(); console.log(child.x); // Should log 1 in IE9/10 with polyfill
Debug
Known issues
deprecatedBabel 6 is outdated and no longer supported. Consider migrating to Babel 7+.
fix
Upgrade to Babel 7 and use @babel/polyfill or core-js.
affects: >=0.0.0
gotchaThis polyfill only fixes super-constructor calls for IE9 and IE10. It does not cover other Babel 6 polyfills or features.
fix
For full polyfill support, consider using @babel/polyfill or core-js with appropriate config.
affects: >=0.0.0
gotchaSince the package has no exports, importing it in a way that expects a value will return undefined.
fix
Use bare import (import '...') or bare require (require('...')).
affects: >=0.0.0
Errors
Common errors & fixes
ReferenceError: Super constructor may not be called in IE9/10
Babel 6 transpiles super() calls incorrectly for IE9 and IE10.
fix
Import ima-babel6-polyfill as the first line of your application entry point.
polyfill is not a function
Trying to use the polyfill as a function or assign its result.
fix
Use bare import or require: import 'ima-babel6-polyfill';
Upgrade
Version history
0.12.0latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
ima-babel6-polyfill — npm install ima-babel6-polyfill · libregistry