Registry / devops / toranb-grunt-es6-module-transpiler

toranb-grunt-es6-module-transpiler

JSON →
library0.0.1jsnpmunverified

A Grunt task for transpiling ES6 module import/export syntax into AMD, CommonJS, YUI, or globals. Current version 0.5.0 (released Oct 2013) supports es6-module-transpiler v0.3.0. Legacy plugin for Grunt 0.4.x with no updates since 2013. Key differentiator: allowed early ES6 module transpilation in Grunt builds but is now outdated; replaced by modern tools like Babel. Requires peer dependency grunt ~0.4.1. Not maintained.

npm install toranb-grunt-es6-module-transpiler
INSTALL
IMPORT
SIG · TORANB-GRUNT-ES6-M
T
toranb-grunt-es6-module-transpiler
devopsjavascriptv0.0.1
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.

Gruntfile config
grunt.initConfig({ transpile: { ... } })
const transpile = require('grunt-es6-module-transpiler')
Plugin is loaded via grunt.loadNpmTasks, not imported directly. Configuration is set in Gruntfile.

Gruntfile configuration that transpiles ES6 modules from lib/ to AMD format in tmp/.

module.exports = function(grunt) { grunt.initConfig({ transpile: { main: { type: 'amd', files: [{ expand: true, cwd: 'lib/', src: ['**/*.js'], dest: 'tmp/' }] } } }); grunt.loadNpmTasks('grunt-es6-module-transpiler'); grunt.registerTask('default', ['transpile']); };
Debug
Known issues
deprecatedPackage unmaintained since 2013. Use modern tooling like Babel or esbuild.
fix
Migrate to a current transpiler (e.g., @babel/preset-env with Grunt or standalone).
affects: >=0.1.0
breakingv0.5.0 removed transpile:enable task due to es6-module-transpiler v0.3.0 changes.
fix
Remove usage of transpile:enable; the feature no longer exists.
affects: >=0.5.0
gotchaStrict mode is enforced; Chai's arguments.callee usage will cause errors.
fix
Use expect.js or other assertion libraries that don't rely on non-strict features.
affects: >=0.1.0
Errors
Common errors & fixes
Warning: Task "transpile" not found
Missing grunt.loadNpmTasks('grunt-es6-module-transpiler') in Gruntfile.
fix
Add grunt.loadNpmTasks('grunt-es6-module-transpiler'); after initConfig.
TypeError: Cannot read property 'files' of undefined
Missing files configuration in the transpile target.
fix
Ensure each target has a files array with src and dest (or expand pattern).
Upgrade
Version history
0.0.1latest on npm
Audit
Dependencies
gruntrequiredpeer dependency required for plugin loading and configuration
Agent activity
2 hits · last 30 days
node
2
Resources
toranb-grunt-es6-module-transpiler — npm install toranb-grunt-es6-module-transpiler · libregistry