Registry / serialization / es6-module-transpiler-system-formatter

es6-module-transpiler-system-formatter

JSON →
library0.3.0jsnpmunverified

An output formatter for es6-module-transpiler that generates System.register() format, enabling ES6 module semantics (including delayed execution, circular dependencies, and live bindings) in ES5. Current stable version: 0.3.0 (2015, no further updates). It integrates with SystemJS and es6-micro-loader and is interchangeable with Traceur's output. Key differentiator: preserves ES6 semantics exactly via the transpiler pipeline, but is experimental and no longer maintained. Use modern tools like Babel or TypeScript instead.

npm install es6-module-transpiler-system-formatter
INSTALL
IMPORT
SIG · ES6-MODULE-TRANSPI
E
es6-module-transpiler-system-formatter
serializationjavascriptv0.3.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

SystemFormatter
✓ const SystemFormatter = require('es6-module-transpiler-system-formatter');
✗ import SystemFormatter from 'es6-module-transpiler-system-formatter';
This package does not support ES module imports; it must be used via CommonJS require.

Demonstrates programmatic usage with es6-module-transpiler to transpile ES6 modules into System.register format.

var transpiler = require('es6-module-transpiler'); var SystemFormatter = require('es6-module-transpiler-system-formatter'); var Container = transpiler.Container; var FileResolver = transpiler.FileResolver; var container = new Container({ resolvers: [new FileResolver(['lib/'])], formatter: new SystemFormatter() }); container.getModule('index'); container.write('out/mylib.js');
Debug
Known issues
deprecatedThis package is no longer maintained. Use modern transpilers like Babel or TypeScript with SystemJS.
fix
Migrate to Babel or TypeScript and use their respective module formats (System.register is still supported in SystemJS).
affects: >=0.1.0
breakingVersion 0.3.0 requires es6-module-transpiler 0.10. Incompatible with older versions.
fix
Ensure es6-module-transpiler is at version ^0.10.0 when using this package.
affects: 0.3.0
gotchaThe output format is experimental and may change between minor versions, breaking System.register() consumers.
fix
Pin the exact version of this formatter and test compatibility with your loader.
affects: >=0.1.0
gotchaThis package does not support ES module syntax; it only works with CommonJS require.
fix
Use CommonJS require() to import the formatter; do not attempt ES import.
affects: >=0.1.0
Errors
Common errors & fixes
Error: Cannot find module 'es6-module-transpiler-system-formatter'
The package is not installed or the path is incorrect when using CLI -f option.
fix
Install the package locally: npm install es6-module-transpiler-system-formatter, then use -f ./node_modules/es6-module-transpiler-system-formatter.
TypeError: SystemFormatter is not a constructor
Using ES import (import SystemFormatter from ...) instead of CommonJS require.
fix
Use const SystemFormatter = require('es6-module-transpiler-system-formatter');
Upgrade
Version history
0.3.0latest on npm
Audit
Dependencies
es6-module-transpilerrequiredThis package is a formatter extension for the es6-module-transpiler library; it cannot be used standalone.
Agent activity
4 hits · last 30 days
node
4
Resources
es6-module-transpiler-system-formatter — npm install es6-module-transpiler-system-formatter · libregistry