{"id":23010,"library":"yougile-rollup","title":"yougile-rollup","description":"A stripped-down fork of Rollup v3 (3.29.5) with fsevents removed, intended for internal YouGile use in binary bundling where external binaries/resources are unsupported. Based on Rollup 3.x, not actively maintained for public use; no updates track upstream Rollup 4.x. Not recommended for new projects—use official Rollup v4 instead. Key differentiator: avoids fsevents dependency, but lacks latest features, bug fixes, and is unsupported.","status":"deprecated","version":"3.29.5","language":"javascript","source_language":"en","source_url":"https://github.com/rollup/rollup","tags":["javascript","modules","bundler","bundling","es6","optimizer","typescript"],"install":[{"cmd":"npm install yougile-rollup","lang":"bash","label":"npm"},{"cmd":"yarn add yougile-rollup","lang":"bash","label":"yarn"},{"cmd":"pnpm add yougile-rollup","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"Package is ESM-only because Rollup 3.x defaults to ESM. Use dynamic import if needed in CJS.","wrong":"const rollup = require('yougile-rollup')","symbol":"rollup","correct":"import { rollup } from 'yougile-rollup'"},{"note":"Default export is available, but named export is preferred for consistency with official Rollup.","wrong":"const rollup = require('yougile-rollup').default","symbol":"rollup (default)","correct":"import rollup from 'yougile-rollup'"},{"note":"Only available in Rollup >=3.29.0. Not present in older versions.","wrong":null,"symbol":"defineConfig","correct":"import { defineConfig } from 'yougile-rollup'"}],"quickstart":{"code":"import { rollup } from 'yougile-rollup';\n\nconst bundle = await rollup({\n  input: 'src/index.js',\n});\n\nconst { output } = await bundle.generate({ format: 'es' });\n\nfor (const chunkOrAsset of output) {\n  if (chunkOrAsset.type === 'chunk') {\n    console.log(chunkOrAsset.code);\n  }\n}\n\nawait bundle.close();","lang":"typescript","description":"Minimal Rollup usage: create a bundle from a single entry, generate output in ES module format, and print code."},"warnings":[{"fix":"Migrate to rollup@4: update import paths, review breaking changes in Rollup 4 release notes.","message":"yougile-rollup is based on Rollup v3 and not updated; use official Rollup v4 instead.","severity":"deprecated","affected_versions":">=3.0.0"},{"fix":"Use output.format = 'es' with Rollup v4, or enable experimentalTopLevelAwait in Rollup v3.","message":"Rollup v3 does not support top-level await in output ES modules (requires experimental flag).","severity":"breaking","affected_versions":"3.x"},{"fix":"Do not use --watch on macOS; or mock fsevents externally if needed.","message":"Missing fsevents means file watching via --watch may fail on macOS or cause runtime errors.","severity":"gotcha","affected_versions":">=3.0.0"},{"fix":"No action needed for v3; when upgrading, follow official Rollup 5 migration.","message":"Returning import attributes from load/transform hooks is deprecated as of Rollup v4.57.0, but this package is locked at v3, so no issue.","severity":"deprecated","affected_versions":"3.x"}],"env_vars":null,"last_verified":"2026-04-27T00:00:00.000Z","next_check":"2026-07-26T00:00:00.000Z","problems":[{"fix":"Install fsevents globally or avoid using rollup --watch on macOS.","cause":"yougile-rollup removed fsevents dependency; some features like file watcher require it.","error":"Error: Cannot find module 'fsevents'"},{"fix":"Use import { rollup } from 'yougile-rollup' or dynamic import in CJS: const { rollup } = await import('yougile-rollup').","cause":"CommonJS require returns a module object; Rollup v3+ is ESM-only.","error":"TypeError: rollup is not a function"},{"fix":"Pass a valid options object with 'input' property: rollup({ input: 'src/index.js' }).","cause":"Rollup options object omitted or invalid.","error":"Error: You must specify input in the rollup options"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}