Babel plugin that transforms System.import() calls (and import() since v3) into a UMD-compatible pattern using Promise. Originally for Babel 5/6, now supports Babel 7 (v4). Key differentiator: it generates a runtime pattern that works across AMD, CommonJS, and global module formats without requiring a module bundler. Stable version 1.1.5 (legacy) with newer major versions for Babel 6 (v2) and Babel 7 (v4). Automatically detects module target (amd/commonjs) and strips unnecessary format detection. Maintenance mode; consider dynamic import with webpack/rollup instead.
npm install babel-plugin-system-importNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates transforming System.import() into a UMD-compatible promise pattern using the plugin.
Upgrade to v2+ if using Babel 6, or pin to v1.x for Babel 5.
Use v3.x for Babel 6, or upgrade your Babel to v7.
Use a different plugin (e.g., babel-plugin-transform-modules-umd) for other module formats.
Replace System.import() with import() and use a plugin that targets dynamic imports (e.g., @babel/plugin-syntax-dynamic-import).
Run `npm install babel-plugin-system-import-transformer --save-dev` and ensure config uses "system-import-transformer".
Install matching version: v3.x for Babel 6, v4.x for Babel 7.