es6-module-transpiler-loader
raw JSON → 0.1.0 verified Fri May 01 auth: no javascript abandoned
A webpack loader that transpiles ES6 modules to AMD, CommonJS, or other formats using the es6-module-transpiler. This package is version 0.1.0 and appears to be an early, unmaintained experiment. Unlike more modern tools like Babel or TypeScript, it relies on a transpiler that never gained widespread adoption. There is no README, no recent updates, and limited community support. It is functionally obsolete and should not be used in new projects.
Common errors
error Module not found: Error: Cannot resolve module 'es6-module-transpiler-loader' ↓
cause Package not installed or not in node_modules
fix
npm install es6-module-transpiler-loader --save-dev
error Loader 'es6-module-transpiler-loader' is not a function ↓
cause Webpack 2+ expects a function; this loader uses old API
fix
Use babel-loader instead or downgrade webpack to 1.x
Warnings
deprecated The es6-module-transpiler project itself is deprecated; use Babel or TypeScript instead. ↓
fix Replace with @babel/loader or ts-loader.
gotcha No README or documentation provided; usage is unclear and unsupported. ↓
fix Avoid using this package; refer to the es6-module-transpiler docs if necessary.
breaking Loader does not work with webpack 2+ due to breaking changes in loader API. ↓
fix Use a modern loader like babel-loader for webpack 2+.
Install
npm install es6-module-transpiler-loader yarn add es6-module-transpiler-loader pnpm add es6-module-transpiler-loader Imports
- default wrong
const TranspilerLoader = require('es6-module-transpiler-loader')correctimport TranspilerLoader from 'es6-module-transpiler-loader' - TranspilerLoader wrong
const { TranspilerLoader } = require('es6-module-transpiler-loader')correctconst TranspilerLoader = require('es6-module-transpiler-loader').default - TypeScript type wrong
import { LoaderDefinition } from 'es6-module-transpiler-loader'correctimport type { LoaderDefinition } from 'es6-module-transpiler-loader'
Quickstart
// webpack.config.js
module.exports = {
module: {
rules: [
{
test: /\.js$/,
loader: 'es6-module-transpiler-loader',
options: {
format: 'cjs' // or 'amd', 'umd', 'yui'
}
}
]
}
}