A Babel plugin that transforms calls to ES2015 instance methods on Array and String to helper runtime polyfills, ensuring compatibility in older environments. Version 0.1.2, no longer actively maintained. It targets specific methods (copyWithin, entries, fill, find, findIndex, keys, values for Array; codePointAt, endsWith, includes, repeat, startsWith for String) but lacks broader support and has been superseded by @babel/plugin-transform-runtime or core-js-based polyfills. No release cadence documented; last update likely years ago.
npm install babel-runtime-es2015-instance-methodsNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows installation, Babel config, and programmatic usage demonstrating transformation of Array.includes.
Replace with @babel/plugin-transform-runtime and configure core-js: https://babeljs.io/docs/en/babel-plugin-transform-runtime
Use a comprehensive polyfill like core-js directly.
Install babel-runtime alongside (npm install babel-runtime).
Use a bundler or switch to @babel/plugin-transform-runtime with useESModules.
Migrate to @babel/preset-env with useBuiltIns: 'usage'.
Install babel-runtime: npm install babel-runtime
Use default import: const plugin = require('babel-runtime-es2015-instance-methods').default or import plugin from '...'Ensure babel-runtime is bundled or use a polyfill like core-js.
Use CommonJS require in Node.js or transpile with Babel first.
Run npm install babel-runtime-es2015-instance-methods --save-dev
No dependency data recorded yet.