{"id":25242,"library":"es6-module-transpiler-dist-formatter","title":"es6-module-transpiler-dist-formatter","description":"An extension for es6-module-transpiler that outputs modules in a dist bundle format compatible with Node.js, YModules, and global variables. Version 0.0.2 is the latest stable release. This package is no longer actively maintained and has been superseded by modern bundlers like Rollup or Webpack. Key differentiator: produces legacy wrappers for multiple module systems (CommonJS, YModules, global).","status":"deprecated","version":"0.0.2","language":"javascript","source_language":"en","source_url":"git://github.com/andrewblond/es6-module-transpiler-dist-formatter","tags":["javascript","es6","module","transpiler","module-formatter","dist","globals","node","ym"],"install":[{"cmd":"npm install es6-module-transpiler-dist-formatter","lang":"bash","label":"npm"},{"cmd":"yarn add es6-module-transpiler-dist-formatter","lang":"bash","label":"yarn"},{"cmd":"pnpm add es6-module-transpiler-dist-formatter","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"Peer dependency; this package is a formatter for the transpiler","package":"es6-module-transpiler","optional":false}],"imports":[{"note":"ES module vs CommonJS; package is CJS only.","wrong":"const DistFormatter = require('es6-module-transpiler-dist-formatter')","symbol":"default","correct":"import DistFormatter from 'es6-module-transpiler-dist-formatter'"},{"note":"Only default export is provided; named destructuring will not work.","wrong":"var {DistFormatter} = require('es6-module-transpiler-dist-formatter')","symbol":"default","correct":"var DistFormatter = require('es6-module-transpiler-dist-formatter')"}],"quickstart":{"code":"var transpiler = require('es6-module-transpiler');\nvar DistFormatter = require('es6-module-transpiler-dist-formatter');\nvar Container = transpiler.Container;\nvar FileResolver = transpiler.FileResolver;\n\nvar container = new Container({\n  resolvers: [new FileResolver(['lib/'])],\n  formatter: new DistFormatter({ name: 'my-module' })\n});\ncontainer.getModule('index');\ncontainer.write('dist/mylib.js');\nconsole.log('Output written to dist/mylib.js');","lang":"javascript","description":"Shows how to create a transpiler container with the DistFormatter and output a bundle."},"warnings":[{"fix":"Always pass { name: 'your-module-name' } to the constructor.","message":"The DistFormatter requires a module name option, otherwise output may be incorrect.","severity":"gotcha","affected_versions":">=0.0.0"},{"fix":"Migrate to Rollup or Webpack with proper ES module output.","message":"es6-module-transpiler and its formatters are deprecated in favor of modern tools like Rollup.","severity":"deprecated","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":"npm install es6-module-transpiler-dist-formatter --save-dev and ensure require path is correct.","cause":"Missing npm install of the package or incorrect require path.","error":"Error: Cannot find module 'es6-module-transpiler-dist-formatter'"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}