{"id":27032,"library":"grunt-es6-module-transpiler","title":"grunt-es6-module-transpiler","description":"A Grunt plugin (v0.6.0) that transpiles ES6 module syntax (import/export) into AMD, CommonJS, or globals using the es6-module-transpiler. Requires Grunt ~0.4.1 and Node >= 0.8.0. It provides a single custom task named 'es6-module-transpiler' for Grunt build systems. Unlike Babel or TypeScript, this package only handles module syntax, not full ES6-to-ES5 transpilation. The project appears unmaintained (last release 2015) and is superseded by modern tools.","status":"maintenance","version":"0.6.0","language":"javascript","source_language":"en","source_url":"git://github.com/joefiorini/grunt-es6-module-transpiler","tags":["javascript","gruntplugin"],"install":[{"cmd":"npm install grunt-es6-module-transpiler","lang":"bash","label":"npm"},{"cmd":"yarn add grunt-es6-module-transpiler","lang":"bash","label":"yarn"},{"cmd":"pnpm add grunt-es6-module-transpiler","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"peer dependency required for Grunt plugin to work","package":"grunt","optional":false},{"reason":"core transpilation library","package":"es6-module-transpiler","optional":false}],"imports":[{"note":"The plugin is loaded as a Grunt task, not a direct JS import.","wrong":"grunt.loadTasks('node_modules/grunt-es6-module-transpiler/tasks');","symbol":"grunt-es6-module-transpiler task","correct":"grunt.loadNpmTasks('grunt-es6-module-transpiler');"},{"note":"If you need the transpiler directly, use 'es6-module-transpiler', not the Grunt wrapper.","wrong":"var transpiler = require('grunt-es6-module-transpiler');","symbol":"es6-module-transpiler","correct":"var transpiler = require('es6-module-transpiler');"},{"note":"The task name is 'es6-module-transpiler', not 'transpile' or other.","wrong":"grunt.initConfig({ transpile: { ... } });","symbol":"grunt.initConfig","correct":"grunt.initConfig({ 'es6-module-transpiler': { options: { type: 'amd' }, files: { 'dest.js': 'src.js' } } });"}],"quickstart":{"code":"// Install: npm install grunt-es6-module-transpiler --save-dev\n// Load in Gruntfile:\ngrunt.loadNpmTasks('grunt-es6-module-transpiler');\n// Configure task:\ngrunt.initConfig({\n  'es6-module-transpiler': {\n    dist: {\n      options: {\n        type: 'amd' // also 'cjs' or 'globals'\n      },\n      files: {\n        'dist/out.js': ['src/module1.js', 'src/module2.js']\n      }\n    }\n  }\n});\n// Run: grunt es6-module-transpiler","lang":"javascript","description":"Demonstrates installing, loading, configuring, and running the grunt-es6-module-transpiler task."},"warnings":[{"fix":"Switch to @babel/core and @babel/preset-env, or use TypeScript with esModuleInterop.","message":"This package is no longer actively maintained. Use Babel or TypeScript for ES6 module transpilation.","severity":"deprecated","affected_versions":"*"},{"fix":"Downgrade Grunt to 0.4.x, or migrate to a different module transpiler.","message":"Grunt ~0.4.1 is required; incompatible with Grunt 1.x.","severity":"breaking","affected_versions":">=0.6.0"},{"fix":"Use a full transpiler (e.g., Babel) for complete ES6 support.","message":"Only transpiles module syntax, not ES6 features like arrow functions or classes.","severity":"gotcha","affected_versions":"*"},{"fix":"Always use quotes: grunt.initConfig({ 'es6-module-transpiler': {...} });","message":"The task name 'es6-module-transpiler' must be quoted in Gruntfile config because of hyphens.","severity":"gotcha","affected_versions":"*"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Ensure you have run 'npm install grunt-es6-module-transpiler --save-dev' and added 'grunt.loadNpmTasks('grunt-es6-module-transpiler');'.","cause":"Plugin not loaded or installed incorrectly.","error":"Warning: Task \"es6-module-transpiler\" not found."},{"fix":"Run 'npm install es6-module-transpiler --save-dev'.","cause":"Missing dependency 'es6-module-transpiler'.","error":"Fatal error: Unable to find module 'es6-module-transpiler'."},{"fix":"Add options with at least 'type': 'amd' or 'cjs'.","cause":"Missing 'options' block in task configuration.","error":"Running \"es6-module-transpiler:dist\" (es6-module-transpiler) task Warning: Cannot read property 'type' of undefined"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}