Registry / serialization / es6-module-transpiler-closure

es6-module-transpiler-closure

JSON →
library1.0.0jsnpmunverified

An experimental transformer for the es6-module-transpiler that converts ES6 modules into Closure Library-style modules with goog.require and goog.provide statements, preserving bundle order without concatenation. Version 1.0.0 is the only published release. Unlike the bundle transformer, this enables full Closure Compiler type checking (e.g., @private annotations) by keeping modules as separate files. The order is maintained identically to the bundle transformer to avoid inconsistencies. It requires Node.js and the es6-module-transpiler CLI.

npm install es6-module-transpiler-closure
INSTALL
IMPORT
SIG · ES6-MODULE-TRANSPI
E
es6-module-transpiler-closure
serializationjavascriptv1.0.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Install the transpiler and this transformer, then use the CLI to convert an ES6 module to separate Closure-style files.

npm install es6-module-transpiler es6-module-transpiler-closure --save compile-modules convert -f es6-module-transpiler-closure main.js -o dst
Debug
Known issues
gotchaThis package is experimental and only at version 1.0.0. It may have bugs and is not recommended for production use.
fix
Consider using the bundle transformer or a more modern transpiler like Babel with Closure Compiler integration.
affects: 1.0.0
Errors
Common errors & fixes
Error: Cannot find module 'es6-module-transpiler-closure'
The package is not installed or the path is incorrect.
fix
Run 'npm install es6-module-transpiler-closure --save' in your project directory.
Upgrade
Version history
1.0.0latest on npm
Audit
Dependencies
es6-module-transpilerrequiredCLI tool that loads this transformer; the package is not functional without it.
Agent activity
4 hits · last 30 days
node
4
Resources
es6-module-transpiler-closure — npm install es6-module-transpiler-closure · libregistry