{"id":25669,"library":"grunt-es6-module-transpiler-rhengles","title":"grunt-es6-module-transpiler","description":"A Grunt task for processing ES6 module import/export syntax into AMD, CommonJS, or globals using the es6-module-transpiler. Current stable version: 0.5.0. Released infrequently, last update 2013. Differentiators: integrates with Grunt build system, offers transpile:enable task to temporarily enable ES6 modules for other tasks. Note: outdated and unmaintained, the underlying transpiler is superseded by Babel.","status":"deprecated","version":"0.5.0","language":"javascript","source_language":"en","source_url":"git://github.com/rhengles/grunt-es6-module-transpiler","tags":["javascript","gruntplugin"],"install":[{"cmd":"npm install grunt-es6-module-transpiler-rhengles","lang":"bash","label":"npm"},{"cmd":"yarn add grunt-es6-module-transpiler-rhengles","lang":"bash","label":"yarn"},{"cmd":"pnpm add grunt-es6-module-transpiler-rhengles","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"peer dependency, required for Grunt plugin","package":"grunt","optional":false},{"reason":"runtime dependency for transpilation","package":"es6-module-transpiler","optional":false}],"imports":[{"note":"Registers the 'transpile' task. No import needed, it's a Grunt plugin.","wrong":"grunt.loadNpmTasks('grunt-es6-module-transpiler'); // correct, no common mistake","symbol":"transpile","correct":"grunt.loadNpmTasks('grunt-es6-module-transpiler');"},{"note":"The :enable subtask temporarily enables ES6 module syntax for other Node scripts.","wrong":"grunt.registerTask('test', ['transpile', 'mocha']); // runs transpile task instead of enabling","symbol":"transpile:enable","correct":"grunt.registerTask('test', ['transpile:enable', 'mocha']);"}],"quickstart":{"code":"// Gruntfile.js\nmodule.exports = function(grunt) {\n  grunt.loadNpmTasks('grunt-es6-module-transpiler');\n\n  grunt.initConfig({\n    transpile: {\n      main: {\n        type: 'cjs',\n        files: [{\n          expand: true,\n          cwd: 'lib/',\n          src: ['**/*.js'],\n          dest: 'tmp/'\n        }]\n      }\n    }\n  });\n\n  grunt.registerTask('default', ['transpile']);\n};\n","lang":"javascript","description":"Registers the transpile task and configures it to convert ES6 modules to CommonJS."},"warnings":[{"fix":"Migrate to @babel/preset-env or @babel/plugin-transform-modules-commonjs with Grunt via grunt-babel.","message":"This plugin and its underlying es6-module-transpiler are deprecated in favor of Babel.","severity":"deprecated","affected_versions":">=0.1.0"},{"fix":"Switch to expect.js or another assertion library that works in strict mode.","message":"The transpiler forces strict mode, causing issues with libraries like Chai that use arguments.callee.","severity":"gotcha","affected_versions":">=0.1.0"},{"fix":"Use a compatible Node version or migrate to a modern transpiler.","message":"Node >= 0.8.0 required, may not work with recent Node versions.","severity":"breaking","affected_versions":">=0.1.0"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"npm install es6-module-transpiler --save-dev","cause":"Missing runtime dependency es6-module-transpiler.","error":"Error: Cannot find module 'es6-module-transpiler'"},{"fix":"Ensure grunt-es6-module-transpiler is installed and grunt.loadNpmTasks('grunt-es6-module-transpiler'); is called.","cause":"Plugin not loaded or not installed.","error":"Warning: Task \"transpile\" not found. Use --force to continue."},{"fix":"Add a transpile configuration block in grunt.initConfig as shown in the docs.","cause":"Missing or incorrect Grunt configuration for transpile task.","error":"TypeError: Cannot read property 'files' of undefined"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}