{"library":"rollupify","title":"rollupify","description":"A Browserify transform that applies Rollup to convert ES6/ES2015 modules into a single CommonJS module, enabling tree-shaking and scope-hoisting for smaller bundles. The current stable version is 0.5.1. This package is unmaintained and considered a legacy hack for migrating from Browserify to Rollup; most users should instead use Rollup directly with rollup-plugin-commonjs and rollup-plugin-node-resolve. Its key differentiator is seamless integration with the Browserify pipeline, applying Rollup before other transforms like babelify. However, it only works on ES6 import/export statements, leaving require() calls untouched. Sourcemap support requires --debug flag.","language":"javascript","status":"deprecated","last_verified":"Mon Apr 27","install":{"commands":["npm install rollupify"],"cli":null},"imports":["const rollupify = require('rollupify')","b.transform('rollupify', { config: { ... } })","\"browserify\": { \"transform\": [\"rollupify\"] }"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"// Install\nnpm install rollupify\n\n// index.js\nimport hello from './hello';\nconsole.log(hello);\nexport default hello;\n\n// hello.js\nexport default \"hello world\";\n\n// Command line\nbrowserify -t rollupify index.js > output.js\n\n// Or with custom rollup.config.js\n// browserify -t [ rollupify --config rollup.config.js ] index.js > output.js","lang":"javascript","description":"Basic usage of rollupify with Browserify command line to transform ES6 modules into a bundled CommonJS output.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}