Registry / es6-transpiler-config

es6-transpiler-config

JSON →
library1.0.2jsnpmunverified

A simplified utility for transpiling ES6+ JavaScript using webpack and Babel under the hood, aiming to reduce configuration overhead. Version 1.0.2 is the latest stable release, with no recent updates (last published years ago). It provides a single function `generateConfig` that returns a webpack configuration object for easy setup. Notable differentiators: it abstracts away webpack and Babel details, but requires manual Babel preset configuration in package.json. This package appears to be unmaintained and superseded by more modern bundlers.

npm install es6-transpiler-config
INSTALL
IMPORT
SIG · ES6-TRANSPILER-CON
E
es6-transpiler-config
javascriptv1.0.2
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.

generateConfig
const generateConfig = require('es6-transpiler-config');
import generateConfig from 'es6-transpiler-config';
CommonJS only; ESM import is not supported. Use require() for Node < 6.

Shows minimal setup: install required dependencies, configure Babel preset in package.json, and create a webpack config using generateConfig().

// Install: npm install --save-dev es6-transpiler-config webpack babel-core babel-preset-es2015 // package.json babel config: // "babel": { "presets": ["es2015"] } const generateConfig = require('es6-transpiler-config'); const path = require('path'); module.exports = generateConfig( './src/index.js', './dist/bundle.js' );
Debug
Known issues
deprecatedThis package is unmaintained; use a modern bundler like webpack 5 directly or Vite.
fix
Migrate to webpack 5 with babel-loader or use Vite.
affects: *
breakingRequires Node >=6. May fail on older Node versions.
fix
Upgrade Node to version 6+.
affects: <6
gotchaBabel preset must be configured in package.json, not in webpack config, or the config function will not pick it up.
fix
Add 'babel': { 'presets': ['es2015'] } to package.json.
affects: *
Errors
Common errors & fixes
Error: Cannot find module 'babel-preset-es2015'
Missing required Babel preset dependency.
fix
npm install --save-dev babel-preset-es2015
TypeError: generateConfig is not a function
Incorrect import attempt (e.g., import instead of require).
fix
Use const generateConfig = require('es6-transpiler-config');
Upgrade
Version history
1.0.2latest on npm
Audit
Dependencies
webpackrequiredCore bundler used for transpilation
babel-corerequiredCore Babel transpilation engine
babel-preset-es2015requiredRequired preset for ES6 transpilation
Agent activity
2 hits · last 30 days
node
2
Resources
es6-transpiler-config — npm install es6-transpiler-config · libregistry