An automatic transform plugin for Rollup that mimics Browserify's transform resolution by reading the `browserify.transform` key in package.json. As of version 1.0.2 (stable, single release), it simplifies applying Browserify transforms (e.g., brfs, envify) to Rollup bundles without manual configuration. Unlike manual plugin arrays, it reads transforms from package.json automatically, reducing setup duplication. No active development since 2017; considered feature-complete for its narrow use case. Alternative: use Rollup plugins directly or @rollup/plugin-commonjs for broader compatibility.
npm install rollup-plugin-auto-transformVerified import paths — ran on the pinned version, not inferred.
Shows how to use the plugin to automatically apply Browserify transforms defined in package.json to a Rollup bundle.
Consider using direct Rollup plugins (e.g., @rollup/plugin-commonjs, rollup-plugin-babel) or @rollup/plugin-node-resolve for better compatibility.
Ensure your package.json has a 'browserify.transform' array. Example: { "browserify": { "transform": ["brfs"] } }Review each transform's compatibility with Rollup. Some Browserify transforms rely on Node.js streams or other Browserify internals.
Run `npm install rollup-plugin-auto-transform` and ensure import is correct: `import autoTransform from 'rollup-plugin-auto-transform'`
Use default import: `import autoTransform from 'rollup-plugin-auto-transform'` instead of `import { autoTransform } from...`Install the transform package (e.g., `npm install brfs`) or remove it from 'browserify.transform'.