{"id":25034,"library":"browserify-es6-modules","title":"Browserify ES6 Module Transpiler","description":"A Browserify transform that compiles ES6 module syntax (import/export) to CommonJS using the ES6 Module Transpiler. Version 0.1.1 is the latest release; no updates since 2014. This project is experimental (WIP) and superseded by Babel. Designed for early adopters of ES6 modules in Browserify builds, but now obsolete. Not recommended for new projects.","status":"deprecated","version":"0.1.1","language":"javascript","source_language":"en","source_url":"https://github.com/thomasboyt/browserify-es6-modules","tags":["javascript"],"install":[{"cmd":"npm install browserify-es6-modules","lang":"bash","label":"npm"},{"cmd":"yarn add browserify-es6-modules","lang":"bash","label":"yarn"},{"cmd":"pnpm add browserify-es6-modules","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"required as a transform for Browserify","package":"browserify","optional":true},{"reason":"core compilation logic","package":"es6-module-transpiler","optional":false}],"imports":[{"note":"Package does not support ES modules; use CommonJS require.","wrong":"import transform from 'browserify-es6-modules';","symbol":"default export (transform function)","correct":"module.exports = require('browserify-es6-modules');"},{"note":"Browserify resolves transform names; passing function may cause issues.","wrong":"browserify().transform(require('browserify-es6-modules'));","symbol":"Transform usage in package.json or gulp","correct":"browserify().transform('browserify-es6-modules');"},{"note":"Uses through2 internally; not instantiated directly.","wrong":"var tr = new require('browserify-es6-modules')();","symbol":"Stream interface","correct":"var through = require('through2'); var tr = through();"}],"quickstart":{"code":"// Install: npm install browserify-es6-modules es6-module-transpiler\n// In your build script:\nvar browserify = require('browserify');\nvar b = browserify();\nb.transform('browserify-es6-modules');\nb.add('./entry.js');\nb.bundle().pipe(process.stdout);\n// Then run the script with Node.","lang":"javascript","description":"Shows how to apply the transform in a Browserify build script."},"warnings":[{"fix":"Use Babel with babelify transform instead.","message":"This package is unmaintained and superseded by Babel. Do not use in new projects.","severity":"deprecated","affected_versions":">=0.0.0"},{"fix":"Test your code thoroughly or switch to a mature alternative.","message":"Experimental (WIP) – may not correctly transpile all ES6 module syntax.","severity":"breaking","affected_versions":">=0.0.0"},{"fix":"Explicitly install es6-module-transpiler alongside this package.","message":"Requires es6-module-transpiler to be installed separately; not listed as a dependency in package.json.","severity":"gotcha","affected_versions":">=0.0.0"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Use b.transform('browserify-es6-modules') not b.transform(require('...')).","cause":"The transform is applied incorrectly (e.g., calling it as a function instead of passing a string).","error":"TransformError: .../node_modules/browserify-es6-modules/index.js: ... is not a function"},{"fix":"Run: npm install es6-module-transpiler","cause":"Missing peer dependency es6-module-transpiler.","error":"Module not found: es6-module-transpiler not installed"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}