{"library":"browser-pack-flat","type":"library","category":null,"description":"Browserify plugin that bundles modules into a single scope, similar to Rollup, eliminating the require runtime wrapper. Current stable version is 3.5.0. Maintained sporadically; no major release since 2020. Differentiator: drastically reduces bundle size and execution overhead by rewriting require() calls to variable references and flattening module scopes. Unlike default browser-pack, it removes the per-module function wrapper and runtime, at the cost of potential execution order differences and incompatibility with certain patterns (e.g., wrapped require, factor-bundle). Supports an ecmaVersion option and IIFE removal via iife:false.","language":"javascript","status":"maintenance","version":"3.5.0","tags":["javascript"],"last_verified":"Mon Apr 27","install":[{"cmd":"npm install browser-pack-flat","imports":["import packFlat from 'browser-pack-flat'","browserify -p browser-pack-flat","browserify(...).plugin(packFlat, { ... })","browserify app.js | browser-unpack | browser-pack-flat"]},{"cmd":"yarn add browser-pack-flat","imports":[]},{"cmd":"pnpm add browser-pack-flat","imports":[]}],"homepage":null,"github":"https://github.com/goto-bus-stop/browser-pack-flat","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/browser-pack-flat","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}