{"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,"search_vec":"'3':32 '3.29.5':12 '4':45 'activ':35 'avoid':59 'base':29 'binari':22 'binaries/resources':26 'bug':66 'bundl':23,74 'bundler':73 'depend':61 'differenti':58 'es6':75 'extern':25 'featur':65 'fix':67 'fork':8 'fsevent':14,60 'instead':56 'intend':16 'intern':18 'javascript':71 'key':57 'lack':63 'latest':64 'maintain':36 'modul':72 'new':50 'offici':53 'optim':76 'project':51 'public':38 'recommend':48 'remov':15 'rollup':3,10,31,44,54 'strip':6 'stripped-down':5 'track':42 'typescript':77 'unsupport':28,70 'updat':41 'upstream':43 'use':20,39,52 'v3':11 'v4':55 'x':33,46 'yougil':2,19 'yougile-rollup':1","created_at":"2026-04-27T17:08:16.110266+00:00","updated_at":"2026-04-27T17:08:16.110266+00:00","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,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":"rollup","cli_version":null,"type":"library","homepage":"https://rollupjs.org/","github":"https://github.com/rollup/rollup","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/yougile-rollup","openapi_spec":null,"status_page":null,"smithery":null,"categories":["devops"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-18","next_check":"2026-07-26","install_tag":null}}