A minimal ES6 System loader polyfill for browsers and Node.js, implementing the System.register() format for ES modules. Current stable version is 0.2.1, with infrequent releases. Unlike full implementations like SystemJS, it focuses on a tiny subset of the spec to maintain ES module semantics while remaining lightweight. Supports anonymous and named modules, basic network fetching in browsers, and direct file import in Node.js. Requires a separate Promise polyfill (es6-promise or bluebird). Not actively maintained; consider upgrading to SystemJS for full spec compliance.
npm install es6-micro-loaderNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows basic usage in Node.js and browser: require the polyfill, then call System.import() with a module path, handling promise resolution.
Migrate to SystemJS (https://github.com/systemjs/systemjs) for spec-compliant loader.
Use path.resolve() to convert relative paths to absolute before calling System.import().
Include a Promise polyfill like es6-promise or bluebird before using System.import().
Set System.baseURL to the correct base path before importing modules.
Run 'npm install es6-micro-loader --save' and ensure node_modules contains the package.
In browser: ensure <script> for system-polyfill.js is included. In Node: use var System = require('es6-micro-loader');Load a Promise polyfill (e.g., es6-promise) before calling System.import().
Ensure module is loaded via <script> tag with correct System.register() name, and use exact name in System.import().