{"id":20122,"library":"ima-babel6-polyfill","title":"IMA.js Babel 6 Polyfill","description":"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.","status":"maintenance","version":"0.12.0","language":"javascript","source_language":"en","source_url":"https://github.com/seznam/IMA.js-babel6-polyfill","tags":["javascript","gulp","ima.js","ima","babel6","polyfill","IE<=10"],"install":[{"cmd":"npm install ima-babel6-polyfill","lang":"bash","label":"npm"},{"cmd":"yarn add ima-babel6-polyfill","lang":"bash","label":"yarn"},{"cmd":"pnpm add ima-babel6-polyfill","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"This is a side-effect polyfill; import without binding. Use ESM import for bundlers.","wrong":"const imaBabel6Polyfill = require('ima-babel6-polyfill');","symbol":"imaBabel6Polyfill","correct":"import 'ima-babel6-polyfill';"},{"note":"For CommonJS environments, use bare require. Do not assign to a variable as it returns undefined.","wrong":"const polyfill = require('ima-babel6-polyfill');","symbol":"require polyfill","correct":"require('ima-babel6-polyfill');"}],"quickstart":{"code":"// Ensure this is imported before any other code\nimport 'ima-babel6-polyfill';\n\nclass Parent {\n  constructor() {\n    this.x = 1;\n  }\n}\n\nclass Child extends Parent {\n  constructor() {\n    super();\n    this.y = 2;\n  }\n}\n\nconst child = new Child();\nconsole.log(child.x); // Should log 1 in IE9/10 with polyfill","lang":"javascript","description":"Shows how to import the polyfill and verifies that super constructor works in IE9/10."},"warnings":[{"fix":"Upgrade to Babel 7 and use @babel/polyfill or core-js.","message":"Babel 6 is outdated and no longer supported. Consider migrating to Babel 7+.","severity":"deprecated","affected_versions":">=0.0.0"},{"fix":"For full polyfill support, consider using @babel/polyfill or core-js with appropriate config.","message":"This polyfill only fixes super-constructor calls for IE9 and IE10. It does not cover other Babel 6 polyfills or features.","severity":"gotcha","affected_versions":">=0.0.0"},{"fix":"Use bare import (import '...') or bare require (require('...')).","message":"Since the package has no exports, importing it in a way that expects a value will return undefined.","severity":"gotcha","affected_versions":">=0.0.0"}],"env_vars":null,"last_verified":"2026-04-25T00:00:00.000Z","next_check":"2026-07-24T00:00:00.000Z","problems":[{"fix":"Import ima-babel6-polyfill as the first line of your application entry point.","cause":"Babel 6 transpiles super() calls incorrectly for IE9 and IE10.","error":"ReferenceError: Super constructor may not be called in IE9/10"},{"fix":"Use bare import or require: import 'ima-babel6-polyfill';","cause":"Trying to use the polyfill as a function or assign its result.","error":"polyfill is not a function"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}