Extension for the es6-module-transpiler that outputs exported module values as globals. Version 0.1.1 appears to be the only release; no release cadence indicated. Unlike the default BundleFormatter which keeps exports internal, this formatter assigns exported values to a named global object (e.g., window.myGlobal). Useful for exposing an ES6 module bundle as a global variable in legacy environments. Note that the transpiler repo is also archived, making this an abandoned approach.
npm install es6-module-transpiler-globals-formatterNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Basic usage: configure a transpiler container with GlobalsFormatter to output ES6 module exports as a single global object.
Consider switching to a modern module bundler like Rollup or Webpack.
Ensure the globalName is unique and not already used in the target environment.
Do not rely on future maintenance.
npm install es6-module-transpiler --save-dev
Use var GlobalsFormatter = require('es6-module-transpiler-globals-formatter');