A wrapper for running Rollup inside fibjs, a JavaScript runtime optimized for async I/O with coroutines. Version 0.4.0 allows using Rollup's JavaScript API with top-level await in fibjs's coroutine context. It provides a patched virtual machine (vbox) to emulate Node.js 'module' and other globals, enabling many Rollup plugins to run despite fibjs lacking full Node.js compatibility. Key differentiators: integrates Rollup's ES module bundling with fibjs's fiber-based concurrency; includes an internal 'rollup-plugin-fibjs-resolve' plugin as a fibjs-compatible alternative to 'rollup-plugin-node-resolve'. Limitations: not all Rollup plugins work, and CLI support is planned but not yet implemented.
npm install fib-rollupVerified import paths — ran on the pinned version, not inferred.
Demonstrates using fib-rollup to bundle a JavaScript file with the fibjs-resolve plugin, generating CommonJS output.
Use only plugins known to work (e.g., rollup-plugin-commonjs) or test with fibjs's vbox. See plugin compatibility list in the docs.
If a plugin fails, try using the provided vbox.getCustomizedVBox to patch missing modules.
Upgrade fibjs to version >=0.26.1 or wrap code in an async function.
Use the programmatic API as shown in the quickstart.
Use 'rollup-plugin-fibjs-resolve' (built-in) instead.
Ensure your script runs inside the vbox by using 'vbox.require' or the default rollup export.
Wrap your code in an async function or upgrade fibjs.
No dependency data recorded yet.