Registry / devops / gobble-es6-modules

gobble-es6-modules

JSON →
library0.1.0jsnpmunverified

A gobble plugin that transpiles ES6 modules to ES5 using the es6-module-transpiler (esnext). Version 0.1.0 is the latest stable release. This package is part of the gobble build system ecosystem and provides a simple .map('es6-modules') transform. It supports both bundle mode (single file output from an entry point) and AMD mode (one-to-one file mapping). The package is minimal but relies on the now-deprecated es6-module-transpiler and has not seen updates since 2014.

npm install gobble-es6-modules
INSTALL
IMPORT
SIG · GOBBLE-ES6-MODULES
G
gobble-es6-modules
devopsjavascriptv0.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.

es6Modules
var gobble = require('gobble'); module.exports = gobble('js').map('es6-modules', { bundle: 'app.js' });
var gobble = require('gobble-es6-modules');
The plugin is not directly imported; it is used via gobble's .map() method.
default
var gobble = require('gobble');
import gobble from 'gobble-es6-modules';
This is a CommonJS plugin; there is no default export from the package itself.
options
{ bundle: 'filename.js' } or { type: 'amd' }
{ type: 'commonjs' }
Only 'amd' is supported for type; no other module formats.

Shows how to use gobble-es6-modules to transpile ES6 modules into a single bundled ES5 file.

var gobble = require('gobble'); // Create a bundle from entry point 'app.js' module.exports = gobble('js').map('es6-modules', { bundle: 'app.js' });
Debug
Known issues
deprecatedes6-module-transpiler (esnext) is deprecated and unmaintained. Use Babel or TypeScript instead.
fix
Migrate to gobble-babel or another modern transpiler plugin.
affects: >=0.0.0
gotchaThe plugin only supports AMD output for individual files; other module formats (CommonJS, UMD) are not available.
fix
Use bundle mode to get single file output, or combine with other plugins.
affects: >=0.0.0
gotchaVersion 0.1.0 is the latest and only version; no updates since 2014.
fix
Consider using an actively maintained alternative.
affects: 0.1.0
Errors
Common errors & fixes
Error: Cannot find module 'es6-module-transpiler'
Missing peer dependency es6-module-transpiler.
fix
Run 'npm install es6-module-transpiler' as a dependency.
TypeError: gobble(...).map is not a function
gobble is not installed or the gobblefile is incorrectly structured.
fix
Ensure gobble is installed (npm install gobble) and the gobblefile exports the result of gobble().map() correctly.
Upgrade
Version history
0.1.0latest on npm
Audit
Dependencies
es6-module-transpilerrequiredCore dependency for transpilation
gobblerequiredPeer dependency; this is a gobble plugin
Agent activity
5 hits · last 30 days
node
4
Amazon
1
Resources
gobble-es6-modules — npm install gobble-es6-modules · libregistry