Registry / serialization / es6-module-transpiler-js-brunch

es6-module-transpiler-js-brunch

JSON →
library0.1.0jsnpmunverified

Brunch plugin for Square's ES6 module transpiler, enabling ES6 module syntax (import/export) compilation to AMD or CommonJS. Version 0.1.0, last release in 2014. Not actively maintained. Key differentiator from similar plugins: no CoffeeScript dependency, enhanced configuration for module name mapping and wrapper type. Note: CommonJS support is broken; only AMD is practically useful. Requires disabling Brunch's default module wrapper.

npm install es6-module-transpiler-js-brunch
INSTALL
IMPORT
SIG · ES6-MODULE-TRANSPI
E
es6-module-transpiler-js-brunch
serializationjavascriptv0.1.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.

plugin
plugins: { es6ModuleTranspiler: { ... } } in brunch config
import es6ModuleTranspiler from 'es6-module-transpiler-js-brunch'
Plugin is configured via brunch config, not imported directly in code.

Demonstrates basic plugin configuration for AMD output with module name mapping.

// In brunch config (config.js or config.coffee) module.exports = { plugins: { es6ModuleTranspiler: { match: /^app/, wrapper: 'amd', moduleName: (path) => 'myapp/' + path.replace(/\.js$/, '') } }, modules: { wrapper: false // Must disable brunch module wrapper } }
Debug
Known issues
breakingCommonJS (cjs) wrapper does not produce usable code for typical interop; only AMD is supported.
fix
Use wrapper: 'amd' and an AMD loader like require.js or ember-loader.
affects: >=0.1.0
deprecatedPackage is unmaintained since 2014; ES6 module transpiler is obsolete.
fix
Migrate to a modern tool like Babel or TypeScript with Brunch plugins (e.g., babel-brunch).
affects: >=0.0.0
gotchaBrunch's built-in module wrapper must be disabled via modules.wrapper: false, otherwise class conflicts occur.
fix
Add modules: { wrapper: false } to brunch config.
affects: >=0.1.0
gotchaPlugin only processes files matching the match regex (default /^app/); files outside are not transpiled.
fix
Adjust the match pattern to include all desired directories.
affects: >=0.1.0
Errors
Common errors & fixes
Error: Cannot find module 'es6-module-transpiler'
Missing peer dependency es6-module-transpiler.
fix
npm install --save es6-module-transpiler
Module wrapper expected 'amd' or 'cjs', got 'xxx'
Invalid wrapper option value.
fix
Set wrapper to 'amd' or 'cjs' in config.
Upgrade
Version history
0.1.0latest on npm
Audit
Dependencies
es6-module-transpilerrequiredCore transpilation engine
brunchoptionalBuild tool runtime peer dependency
Agent activity
2 hits · last 30 days
node
2
Resources
es6-module-transpiler-js-brunch — npm install es6-module-transpiler-js-brunch · libregistry