[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill-openai-turbopack":3,"mdc--yk9kol-key":33,"related-repo-openai-turbopack":3096,"related-org-openai-turbopack":3216},{"slug":4,"name":4,"fn":5,"description":6,"org":7,"tags":11,"stars":22,"repoUrl":23,"updatedAt":24,"license":25,"forks":26,"topics":27,"repo":28,"sourceUrl":31,"mdContent":32},"turbopack","configure Turbopack for Next.js","Turbopack expert guidance. Use when configuring the Next.js bundler, optimizing HMR, debugging build issues, or understanding the Turbopack vs Webpack differences.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},"openai","OpenAI","https:\u002F\u002Fpexgzepcugksgbtrxkhf.supabase.co\u002Fstorage\u002Fv1\u002Fobject\u002Fpublic\u002Forg-logos\u002Fopenai.png",[12,16,19],{"name":13,"slug":14,"type":15},"Performance","performance","tag",{"name":17,"slug":18,"type":15},"Vercel","vercel",{"name":20,"slug":21,"type":15},"Next.js","next-js",3992,"https:\u002F\u002Fgithub.com\u002Fopenai\u002Fplugins","2026-04-06T18:40:41.860636",null,465,[],{"repoUrl":23,"stars":22,"forks":26,"topics":29,"description":30},[],"OpenAI Plugins","https:\u002F\u002Fgithub.com\u002Fopenai\u002Fplugins\u002Ftree\u002FHEAD\u002Fplugins\u002Fvercel\u002Fskills\u002Fturbopack","---\nname: turbopack\ndescription: Turbopack expert guidance. Use when configuring the Next.js bundler, optimizing HMR, debugging build issues, or understanding the Turbopack vs Webpack differences.\nmetadata:\n  priority: 4\n  docs:\n    - \"https:\u002F\u002Fturbo.build\u002Fpack\u002Fdocs\"\n    - \"https:\u002F\u002Fnextjs.org\u002Fdocs\u002Farchitecture\u002Fturbopack\"\n  sitemap: \"https:\u002F\u002Fturbo.build\u002Fsitemap.xml\"\n  pathPatterns: \n    - 'next.config.*'\n  bashPatterns: \n    - '\\bnext\\s+dev\\s+--turbo\\b'\n    - '\\bnext\\s+dev\\s+--turbopack\\b'\n---\n\n# Turbopack\n\nYou are an expert in Turbopack — the Rust-powered JavaScript\u002FTypeScript bundler built by Vercel. It is the default bundler in Next.js 16.\n\n## Key Features\n\n- **Instant HMR**: Hot Module Replacement that doesn't degrade with app size\n- **File System Caching (Stable)**: Dev server artifacts cached on disk between restarts — up to 14x faster startup on large projects. Enabled by default in Next.js 16.1+, no config needed. Build caching planned next.\n- **Multi-environment builds**: Browser, Server, Edge, SSR, React Server Components\n- **Native RSC support**: Built for React Server Components from the ground up\n- **TypeScript, JSX, CSS, CSS Modules, WebAssembly**: Out of the box\n- **Rust-powered**: Incremental computation engine for maximum performance\n\n## Configuration (Next.js 16)\n\nIn Next.js 16, Turbopack config is top-level (moved from `experimental.turbopack`):\n\n```js\n\u002F\u002F next.config.ts\nimport type { NextConfig } from 'next'\n\nconst nextConfig: NextConfig = {\n  turbopack: {\n    \u002F\u002F Resolve aliases (like webpack resolve.alias)\n    resolveAlias: {\n      'old-package': 'new-package',\n    },\n    \u002F\u002F Custom file extensions to resolve\n    resolveExtensions: ['.ts', '.tsx', '.js', '.jsx', '.json'],\n  },\n}\n\nexport default nextConfig\n```\n\n## CSS and CSS Modules Handling\n\nTurbopack handles CSS natively without additional configuration.\n\n### Global CSS\n\nImport global CSS in your root layout:\n\n```tsx\n\u002F\u002F app\u002Flayout.tsx\nimport '.\u002Fglobals.css'\n```\n\n### CSS Modules\n\nCSS Modules work out of the box with `.module.css` files:\n\n```tsx\n\u002F\u002F components\u002FButton.tsx\nimport styles from '.\u002FButton.module.css'\n\nexport function Button({ children }) {\n  return \u003Cbutton className={styles.primary}>{children}\u003C\u002Fbutton>\n}\n```\n\n### PostCSS\n\nTurbopack reads your `postcss.config.js` automatically. Tailwind CSS v4 works with zero config:\n\n```js\n\u002F\u002F postcss.config.js\nmodule.exports = {\n  plugins: {\n    '@tailwindcss\u002Fpostcss': {},\n    autoprefixer: {},\n  },\n}\n```\n\n### Sass \u002F SCSS\n\nInstall `sass` and import `.scss` files directly — Turbopack compiles them natively:\n\n```bash\nnpm install sass\n```\n\n```tsx\nimport styles from '.\u002FComponent.module.scss'\n```\n\n### Common CSS pitfalls\n\n- **CSS ordering differs from webpack**: Turbopack may load CSS chunks in a different order. Avoid relying on source-order specificity across files — use more specific selectors or CSS Modules.\n- **`@import` in global CSS**: Use standard CSS `@import` — Turbopack resolves them, but circular imports cause build failures.\n- **CSS-in-JS libraries**: `styled-components` and `emotion` work but require their SWC plugins configured under `compiler` in next.config.\n\n## Tree Shaking\n\nTurbopack performs tree shaking at the module level in production builds. Key behaviors:\n\n- **ES module exports**: Only used exports are included — write `export` on each function\u002Fconstant rather than barrel `export *`\n- **Side-effect-free packages**: Mark packages as side-effect-free in `package.json` to enable aggressive tree shaking:\n\n```json\n{\n  \"name\": \"my-ui-lib\",\n  \"sideEffects\": false\n}\n```\n\n- **Barrel file optimization**: Turbopack can skip unused re-exports from barrel files (`index.ts`) when the package declares `\"sideEffects\": false`\n- **Dynamic imports**: `import()` expressions create async chunk boundaries — Turbopack splits these into separate chunks automatically\n\n### Diagnosing large bundles\n\n**Built-in analyzer (Next.js 16.1+, experimental)**: Works natively with Turbopack. Offers route-specific filtering, import tracing, and RSC boundary analysis:\n\n```ts\n\u002F\u002F next.config.ts\nconst nextConfig: NextConfig = {\n  experimental: {\n    bundleAnalyzer: true,\n  },\n}\n```\n\n**Legacy `@next\u002Fbundle-analyzer`**: Still works as a fallback:\n\n```bash\nANALYZE=true next build\n```\n\n```ts\n\u002F\u002F next.config.ts\nimport withBundleAnalyzer from '@next\u002Fbundle-analyzer'\n\nconst nextConfig = withBundleAnalyzer({\n  enabled: process.env.ANALYZE === 'true',\n})({\n  \u002F\u002F your config\n})\n```\n\n## Custom Loader Migration from Webpack\n\nTurbopack does not support webpack loaders directly. Here is how to migrate common patterns:\n\n| Webpack Loader | Turbopack Equivalent |\n|----------------|---------------------|\n| `css-loader` + `style-loader` | Built-in CSS support — remove loaders |\n| `sass-loader` | Built-in — install `sass` package |\n| `postcss-loader` | Built-in — reads `postcss.config.js` |\n| `file-loader` \u002F `url-loader` | Built-in static asset handling |\n| `svgr` \u002F `@svgr\u002Fwebpack` | Use `@svgr\u002Fwebpack` via `turbopack.rules` |\n| `raw-loader` | Use `import x from '.\u002Ffile?raw'` |\n| `graphql-tag\u002Floader` | Use a build-time codegen step instead |\n| `worker-loader` | Use native `new Worker(new URL(...))` syntax |\n\n### Configuring custom rules (loader replacement)\n\nFor loaders that have no built-in equivalent, use `turbopack.rules`:\n\n```js\n\u002F\u002F next.config.ts\nconst nextConfig: NextConfig = {\n  turbopack: {\n    rules: {\n      '*.svg': {\n        loaders: ['@svgr\u002Fwebpack'],\n        as: '*.js',\n      },\n    },\n  },\n}\n```\n\n### When migration isn't possible\n\nIf a webpack loader has no Turbopack equivalent and no workaround, fall back to webpack:\n\n```js\nconst nextConfig: NextConfig = {\n  bundler: 'webpack',\n}\n```\n\nFile an issue at [github.com\u002Fvercel\u002Fnext.js](https:\u002F\u002Fgithub.com\u002Fvercel\u002Fnext.js) — the Turbopack team tracks loader parity requests.\n\n## Production Build Diagnostics\n\n### Build failing with Turbopack\n\n1. **Check for unsupported config**: Remove any `webpack()` function from next.config — it's ignored by Turbopack and may mask the real config\n2. **Verify `turbopack.rules`**: Ensure custom rules reference valid loaders that are installed\n3. **Check for Node.js built-in usage in edge\u002Fclient**: Turbopack enforces environment boundaries — `fs`, `path`, etc. cannot be imported in client or edge bundles\n4. **Module not found errors**: Ensure `turbopack.resolveAlias` covers any custom resolution that was previously in webpack config\n\n### Build output too large\n\n- Audit `\"use client\"` directives — each client component boundary creates a new chunk\n- Check for accidentally bundled server-only packages in client components\n- Use `server-only` package to enforce server\u002Fclient boundaries at import time:\n\n```bash\nnpm install server-only\n```\n\n```ts\n\u002F\u002F lib\u002Fdb.ts\nimport 'server-only' \u002F\u002F Build fails if imported in a client component\n```\n\n### Comparing webpack vs Turbopack output\n\nRun both bundlers and compare:\n\n```bash\n# Turbopack build (default in Next.js 16)\nnext build\n\n# Webpack build\nBUNDLER=webpack next build\n```\n\nCompare `.next\u002F` output sizes and page-level chunks.\n\n## Performance Profiling\n\n### HMR profiling\n\nEnable verbose HMR timing in development:\n\n```bash\nNEXT_TURBOPACK_TRACING=1 next dev\n```\n\nThis writes a `trace.json` to the project root — open it in `chrome:\u002F\u002Ftracing` or [Perfetto](https:\u002F\u002Fui.perfetto.dev\u002F) to see module-level timing.\n\n### Build profiling\n\nProfile production builds:\n\n```bash\nNEXT_TURBOPACK_TRACING=1 next build\n```\n\nLook for:\n- **Long-running transforms**: Indicates a slow SWC plugin or heavy PostCSS config\n- **Large module graphs**: Reduce barrel file re-exports\n- **Cache misses**: If incremental builds aren't hitting cache, check for files that change every build (e.g., generated timestamps)\n\n### Memory usage\n\nTurbopack's Rust core manages its own memory. If builds OOM:\n- Increase Node.js heap: `NODE_OPTIONS='--max-old-space-size=8192' next build`\n- Reduce concurrent tasks if running inside Turborepo: `turbo build --concurrency=2`\n\n## Turbopack vs Webpack\n\n| Feature | Turbopack | Webpack |\n|---------|-----------|---------|\n| Language | Rust | JavaScript |\n| HMR speed | Constant (O(1)) | Degrades with app size |\n| RSC support | Native | Plugin-based |\n| Cold start | Fast | Slower |\n| Ecosystem | Growing | Massive (loaders, plugins) |\n| Status in Next.js 16 | Default | Still supported |\n| Tree shaking | Module-level | Module-level |\n| CSS handling | Built-in | Requires loaders |\n| Production builds | Supported | Supported |\n\n## When You Might Need Webpack\n\n- Custom webpack loaders with no Turbopack equivalent\n- Complex webpack plugin configurations (e.g., `ModuleFederationPlugin`)\n- Specific webpack features not yet in Turbopack (e.g., custom `externals` functions)\n\nTo use webpack instead:\n```js\n\u002F\u002F next.config.ts\nconst nextConfig: NextConfig = {\n  bundler: 'webpack', \u002F\u002F Opt out of Turbopack\n}\n```\n\n## Development vs Production\n\n- **Development**: Turbopack provides instant HMR and fast refresh\n- **Production**: Turbopack handles the production build (replaces webpack in Next.js 16)\n\n## Common Issues\n\n1. **Missing loader equivalent**: Some webpack loaders don't have Turbopack equivalents yet. Check Turbopack docs for supported transformations.\n2. **Config migration**: Move `experimental.turbopack` to top-level `turbopack` in next.config.\n3. **Custom aliases**: Use `turbopack.resolveAlias` instead of `webpack.resolve.alias`.\n4. **CSS ordering changes**: Test visual regressions when migrating — CSS chunk order may differ.\n5. **Environment boundary errors**: Server-only modules imported in client components fail at build time — use `server-only` package.\n\n## Official Documentation\n\n- [Turbopack](https:\u002F\u002Fturborepo.dev\u002Fpack)\n- [Turbopack Documentation](https:\u002F\u002Fturborepo.dev\u002Fpack\u002Fdocs)\n- [Next.js Turbopack Config](https:\u002F\u002Fnextjs.org\u002Fdocs\u002Fapp\u002Fapi-reference\u002Fconfig\u002Fnext-config-js\u002Fturbopack)\n- [GitHub: Turbopack](https:\u002F\u002Fgithub.com\u002Fvercel\u002Fturborepo)\n",{"data":34,"body":46},{"name":4,"description":6,"metadata":35},{"priority":36,"docs":37,"sitemap":40,"pathPatterns":41,"bashPatterns":43},4,[38,39],"https:\u002F\u002Fturbo.build\u002Fpack\u002Fdocs","https:\u002F\u002Fnextjs.org\u002Fdocs\u002Farchitecture\u002Fturbopack","https:\u002F\u002Fturbo.build\u002Fsitemap.xml",[42],"next.config.*",[44,45],"\\bnext\\s+dev\\s+--turbo\\b","\\bnext\\s+dev\\s+--turbopack\\b",{"type":47,"children":48},"root",[49,57,63,70,136,142,156,533,539,544,551,556,593,599,612,776,782,795,898,904,925,952,987,993,1063,1069,1074,1118,1207,1251,1257,1267,1362,1378,1413,1585,1591,1596,1821,1827,1838,2028,2034,2039,2109,2125,2131,2137,2218,2224,2257,2280,2319,2325,2330,2395,2408,2414,2420,2425,2458,2488,2494,2499,2529,2534,2567,2573,2578,2603,2609,2795,2801,2835,2840,2920,2926,2949,2955,3042,3048,3090],{"type":50,"tag":51,"props":52,"children":53},"element","h1",{"id":4},[54],{"type":55,"value":56},"text","Turbopack",{"type":50,"tag":58,"props":59,"children":60},"p",{},[61],{"type":55,"value":62},"You are an expert in Turbopack — the Rust-powered JavaScript\u002FTypeScript bundler built by Vercel. It is the default bundler in Next.js 16.",{"type":50,"tag":64,"props":65,"children":67},"h2",{"id":66},"key-features",[68],{"type":55,"value":69},"Key Features",{"type":50,"tag":71,"props":72,"children":73},"ul",{},[74,86,96,106,116,126],{"type":50,"tag":75,"props":76,"children":77},"li",{},[78,84],{"type":50,"tag":79,"props":80,"children":81},"strong",{},[82],{"type":55,"value":83},"Instant HMR",{"type":55,"value":85},": Hot Module Replacement that doesn't degrade with app size",{"type":50,"tag":75,"props":87,"children":88},{},[89,94],{"type":50,"tag":79,"props":90,"children":91},{},[92],{"type":55,"value":93},"File System Caching (Stable)",{"type":55,"value":95},": Dev server artifacts cached on disk between restarts — up to 14x faster startup on large projects. Enabled by default in Next.js 16.1+, no config needed. Build caching planned next.",{"type":50,"tag":75,"props":97,"children":98},{},[99,104],{"type":50,"tag":79,"props":100,"children":101},{},[102],{"type":55,"value":103},"Multi-environment builds",{"type":55,"value":105},": Browser, Server, Edge, SSR, React Server Components",{"type":50,"tag":75,"props":107,"children":108},{},[109,114],{"type":50,"tag":79,"props":110,"children":111},{},[112],{"type":55,"value":113},"Native RSC support",{"type":55,"value":115},": Built for React Server Components from the ground up",{"type":50,"tag":75,"props":117,"children":118},{},[119,124],{"type":50,"tag":79,"props":120,"children":121},{},[122],{"type":55,"value":123},"TypeScript, JSX, CSS, CSS Modules, WebAssembly",{"type":55,"value":125},": Out of the box",{"type":50,"tag":75,"props":127,"children":128},{},[129,134],{"type":50,"tag":79,"props":130,"children":131},{},[132],{"type":55,"value":133},"Rust-powered",{"type":55,"value":135},": Incremental computation engine for maximum performance",{"type":50,"tag":64,"props":137,"children":139},{"id":138},"configuration-nextjs-16",[140],{"type":55,"value":141},"Configuration (Next.js 16)",{"type":50,"tag":58,"props":143,"children":144},{},[145,147,154],{"type":55,"value":146},"In Next.js 16, Turbopack config is top-level (moved from ",{"type":50,"tag":148,"props":149,"children":151},"code",{"className":150},[],[152],{"type":55,"value":153},"experimental.turbopack",{"type":55,"value":155},"):",{"type":50,"tag":157,"props":158,"children":163},"pre",{"className":159,"code":160,"language":161,"meta":162,"style":162},"language-js shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","\u002F\u002F next.config.ts\nimport type { NextConfig } from 'next'\n\nconst nextConfig: NextConfig = {\n  turbopack: {\n    \u002F\u002F Resolve aliases (like webpack resolve.alias)\n    resolveAlias: {\n      'old-package': 'new-package',\n    },\n    \u002F\u002F Custom file extensions to resolve\n    resolveExtensions: ['.ts', '.tsx', '.js', '.jsx', '.json'],\n  },\n}\n\nexport default nextConfig\n","js","",[164],{"type":50,"tag":148,"props":165,"children":166},{"__ignoreMap":162},[167,179,232,242,276,294,303,320,361,370,379,488,497,506,514],{"type":50,"tag":168,"props":169,"children":172},"span",{"class":170,"line":171},"line",1,[173],{"type":50,"tag":168,"props":174,"children":176},{"style":175},"--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic",[177],{"type":55,"value":178},"\u002F\u002F next.config.ts\n",{"type":50,"tag":168,"props":180,"children":182},{"class":170,"line":181},2,[183,189,194,200,206,211,216,221,227],{"type":50,"tag":168,"props":184,"children":186},{"style":185},"--shiki-light:#39ADB5;--shiki-light-font-style:italic;--shiki-default:#89DDFF;--shiki-default-font-style:italic;--shiki-dark:#89DDFF;--shiki-dark-font-style:italic",[187],{"type":55,"value":188},"import",{"type":50,"tag":168,"props":190,"children":191},{"style":185},[192],{"type":55,"value":193}," type",{"type":50,"tag":168,"props":195,"children":197},{"style":196},"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF",[198],{"type":55,"value":199}," {",{"type":50,"tag":168,"props":201,"children":203},{"style":202},"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8",[204],{"type":55,"value":205}," NextConfig",{"type":50,"tag":168,"props":207,"children":208},{"style":196},[209],{"type":55,"value":210}," }",{"type":50,"tag":168,"props":212,"children":213},{"style":185},[214],{"type":55,"value":215}," from",{"type":50,"tag":168,"props":217,"children":218},{"style":196},[219],{"type":55,"value":220}," '",{"type":50,"tag":168,"props":222,"children":224},{"style":223},"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D",[225],{"type":55,"value":226},"next",{"type":50,"tag":168,"props":228,"children":229},{"style":196},[230],{"type":55,"value":231},"'\n",{"type":50,"tag":168,"props":233,"children":235},{"class":170,"line":234},3,[236],{"type":50,"tag":168,"props":237,"children":239},{"emptyLinePlaceholder":238},true,[240],{"type":55,"value":241},"\n",{"type":50,"tag":168,"props":243,"children":244},{"class":170,"line":36},[245,251,256,261,266,271],{"type":50,"tag":168,"props":246,"children":248},{"style":247},"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA",[249],{"type":55,"value":250},"const",{"type":50,"tag":168,"props":252,"children":253},{"style":202},[254],{"type":55,"value":255}," nextConfig",{"type":50,"tag":168,"props":257,"children":258},{"style":196},[259],{"type":55,"value":260},":",{"type":50,"tag":168,"props":262,"children":264},{"style":263},"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B",[265],{"type":55,"value":205},{"type":50,"tag":168,"props":267,"children":268},{"style":196},[269],{"type":55,"value":270}," =",{"type":50,"tag":168,"props":272,"children":273},{"style":196},[274],{"type":55,"value":275}," {\n",{"type":50,"tag":168,"props":277,"children":279},{"class":170,"line":278},5,[280,286,290],{"type":50,"tag":168,"props":281,"children":283},{"style":282},"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178",[284],{"type":55,"value":285},"  turbopack",{"type":50,"tag":168,"props":287,"children":288},{"style":196},[289],{"type":55,"value":260},{"type":50,"tag":168,"props":291,"children":292},{"style":196},[293],{"type":55,"value":275},{"type":50,"tag":168,"props":295,"children":297},{"class":170,"line":296},6,[298],{"type":50,"tag":168,"props":299,"children":300},{"style":175},[301],{"type":55,"value":302},"    \u002F\u002F Resolve aliases (like webpack resolve.alias)\n",{"type":50,"tag":168,"props":304,"children":306},{"class":170,"line":305},7,[307,312,316],{"type":50,"tag":168,"props":308,"children":309},{"style":282},[310],{"type":55,"value":311},"    resolveAlias",{"type":50,"tag":168,"props":313,"children":314},{"style":196},[315],{"type":55,"value":260},{"type":50,"tag":168,"props":317,"children":318},{"style":196},[319],{"type":55,"value":275},{"type":50,"tag":168,"props":321,"children":323},{"class":170,"line":322},8,[324,329,334,339,343,347,352,356],{"type":50,"tag":168,"props":325,"children":326},{"style":196},[327],{"type":55,"value":328},"      '",{"type":50,"tag":168,"props":330,"children":331},{"style":282},[332],{"type":55,"value":333},"old-package",{"type":50,"tag":168,"props":335,"children":336},{"style":196},[337],{"type":55,"value":338},"'",{"type":50,"tag":168,"props":340,"children":341},{"style":196},[342],{"type":55,"value":260},{"type":50,"tag":168,"props":344,"children":345},{"style":196},[346],{"type":55,"value":220},{"type":50,"tag":168,"props":348,"children":349},{"style":223},[350],{"type":55,"value":351},"new-package",{"type":50,"tag":168,"props":353,"children":354},{"style":196},[355],{"type":55,"value":338},{"type":50,"tag":168,"props":357,"children":358},{"style":196},[359],{"type":55,"value":360},",\n",{"type":50,"tag":168,"props":362,"children":364},{"class":170,"line":363},9,[365],{"type":50,"tag":168,"props":366,"children":367},{"style":196},[368],{"type":55,"value":369},"    },\n",{"type":50,"tag":168,"props":371,"children":373},{"class":170,"line":372},10,[374],{"type":50,"tag":168,"props":375,"children":376},{"style":175},[377],{"type":55,"value":378},"    \u002F\u002F Custom file extensions to resolve\n",{"type":50,"tag":168,"props":380,"children":382},{"class":170,"line":381},11,[383,388,392,397,401,406,410,415,419,424,428,432,436,441,445,449,453,458,462,466,470,475,479,484],{"type":50,"tag":168,"props":384,"children":385},{"style":282},[386],{"type":55,"value":387},"    resolveExtensions",{"type":50,"tag":168,"props":389,"children":390},{"style":196},[391],{"type":55,"value":260},{"type":50,"tag":168,"props":393,"children":394},{"style":202},[395],{"type":55,"value":396}," [",{"type":50,"tag":168,"props":398,"children":399},{"style":196},[400],{"type":55,"value":338},{"type":50,"tag":168,"props":402,"children":403},{"style":223},[404],{"type":55,"value":405},".ts",{"type":50,"tag":168,"props":407,"children":408},{"style":196},[409],{"type":55,"value":338},{"type":50,"tag":168,"props":411,"children":412},{"style":196},[413],{"type":55,"value":414},",",{"type":50,"tag":168,"props":416,"children":417},{"style":196},[418],{"type":55,"value":220},{"type":50,"tag":168,"props":420,"children":421},{"style":223},[422],{"type":55,"value":423},".tsx",{"type":50,"tag":168,"props":425,"children":426},{"style":196},[427],{"type":55,"value":338},{"type":50,"tag":168,"props":429,"children":430},{"style":196},[431],{"type":55,"value":414},{"type":50,"tag":168,"props":433,"children":434},{"style":196},[435],{"type":55,"value":220},{"type":50,"tag":168,"props":437,"children":438},{"style":223},[439],{"type":55,"value":440},".js",{"type":50,"tag":168,"props":442,"children":443},{"style":196},[444],{"type":55,"value":338},{"type":50,"tag":168,"props":446,"children":447},{"style":196},[448],{"type":55,"value":414},{"type":50,"tag":168,"props":450,"children":451},{"style":196},[452],{"type":55,"value":220},{"type":50,"tag":168,"props":454,"children":455},{"style":223},[456],{"type":55,"value":457},".jsx",{"type":50,"tag":168,"props":459,"children":460},{"style":196},[461],{"type":55,"value":338},{"type":50,"tag":168,"props":463,"children":464},{"style":196},[465],{"type":55,"value":414},{"type":50,"tag":168,"props":467,"children":468},{"style":196},[469],{"type":55,"value":220},{"type":50,"tag":168,"props":471,"children":472},{"style":223},[473],{"type":55,"value":474},".json",{"type":50,"tag":168,"props":476,"children":477},{"style":196},[478],{"type":55,"value":338},{"type":50,"tag":168,"props":480,"children":481},{"style":202},[482],{"type":55,"value":483},"]",{"type":50,"tag":168,"props":485,"children":486},{"style":196},[487],{"type":55,"value":360},{"type":50,"tag":168,"props":489,"children":491},{"class":170,"line":490},12,[492],{"type":50,"tag":168,"props":493,"children":494},{"style":196},[495],{"type":55,"value":496},"  },\n",{"type":50,"tag":168,"props":498,"children":500},{"class":170,"line":499},13,[501],{"type":50,"tag":168,"props":502,"children":503},{"style":196},[504],{"type":55,"value":505},"}\n",{"type":50,"tag":168,"props":507,"children":509},{"class":170,"line":508},14,[510],{"type":50,"tag":168,"props":511,"children":512},{"emptyLinePlaceholder":238},[513],{"type":55,"value":241},{"type":50,"tag":168,"props":515,"children":517},{"class":170,"line":516},15,[518,523,528],{"type":50,"tag":168,"props":519,"children":520},{"style":185},[521],{"type":55,"value":522},"export",{"type":50,"tag":168,"props":524,"children":525},{"style":185},[526],{"type":55,"value":527}," default",{"type":50,"tag":168,"props":529,"children":530},{"style":202},[531],{"type":55,"value":532}," nextConfig\n",{"type":50,"tag":64,"props":534,"children":536},{"id":535},"css-and-css-modules-handling",[537],{"type":55,"value":538},"CSS and CSS Modules Handling",{"type":50,"tag":58,"props":540,"children":541},{},[542],{"type":55,"value":543},"Turbopack handles CSS natively without additional configuration.",{"type":50,"tag":545,"props":546,"children":548},"h3",{"id":547},"global-css",[549],{"type":55,"value":550},"Global CSS",{"type":50,"tag":58,"props":552,"children":553},{},[554],{"type":55,"value":555},"Import global CSS in your root layout:",{"type":50,"tag":157,"props":557,"children":561},{"className":558,"code":559,"language":560,"meta":162,"style":162},"language-tsx shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","\u002F\u002F app\u002Flayout.tsx\nimport '.\u002Fglobals.css'\n","tsx",[562],{"type":50,"tag":148,"props":563,"children":564},{"__ignoreMap":162},[565,573],{"type":50,"tag":168,"props":566,"children":567},{"class":170,"line":171},[568],{"type":50,"tag":168,"props":569,"children":570},{"style":175},[571],{"type":55,"value":572},"\u002F\u002F app\u002Flayout.tsx\n",{"type":50,"tag":168,"props":574,"children":575},{"class":170,"line":181},[576,580,584,589],{"type":50,"tag":168,"props":577,"children":578},{"style":185},[579],{"type":55,"value":188},{"type":50,"tag":168,"props":581,"children":582},{"style":196},[583],{"type":55,"value":220},{"type":50,"tag":168,"props":585,"children":586},{"style":223},[587],{"type":55,"value":588},".\u002Fglobals.css",{"type":50,"tag":168,"props":590,"children":591},{"style":196},[592],{"type":55,"value":231},{"type":50,"tag":545,"props":594,"children":596},{"id":595},"css-modules",[597],{"type":55,"value":598},"CSS Modules",{"type":50,"tag":58,"props":600,"children":601},{},[602,604,610],{"type":55,"value":603},"CSS Modules work out of the box with ",{"type":50,"tag":148,"props":605,"children":607},{"className":606},[],[608],{"type":55,"value":609},".module.css",{"type":55,"value":611}," files:",{"type":50,"tag":157,"props":613,"children":615},{"className":558,"code":614,"language":560,"meta":162,"style":162},"\u002F\u002F components\u002FButton.tsx\nimport styles from '.\u002FButton.module.css'\n\nexport function Button({ children }) {\n  return \u003Cbutton className={styles.primary}>{children}\u003C\u002Fbutton>\n}\n",[616],{"type":50,"tag":148,"props":617,"children":618},{"__ignoreMap":162},[619,627,657,664,702,769],{"type":50,"tag":168,"props":620,"children":621},{"class":170,"line":171},[622],{"type":50,"tag":168,"props":623,"children":624},{"style":175},[625],{"type":55,"value":626},"\u002F\u002F components\u002FButton.tsx\n",{"type":50,"tag":168,"props":628,"children":629},{"class":170,"line":181},[630,634,639,644,648,653],{"type":50,"tag":168,"props":631,"children":632},{"style":185},[633],{"type":55,"value":188},{"type":50,"tag":168,"props":635,"children":636},{"style":202},[637],{"type":55,"value":638}," styles ",{"type":50,"tag":168,"props":640,"children":641},{"style":185},[642],{"type":55,"value":643},"from",{"type":50,"tag":168,"props":645,"children":646},{"style":196},[647],{"type":55,"value":220},{"type":50,"tag":168,"props":649,"children":650},{"style":223},[651],{"type":55,"value":652},".\u002FButton.module.css",{"type":50,"tag":168,"props":654,"children":655},{"style":196},[656],{"type":55,"value":231},{"type":50,"tag":168,"props":658,"children":659},{"class":170,"line":234},[660],{"type":50,"tag":168,"props":661,"children":662},{"emptyLinePlaceholder":238},[663],{"type":55,"value":241},{"type":50,"tag":168,"props":665,"children":666},{"class":170,"line":36},[667,671,676,682,687,693,698],{"type":50,"tag":168,"props":668,"children":669},{"style":185},[670],{"type":55,"value":522},{"type":50,"tag":168,"props":672,"children":673},{"style":247},[674],{"type":55,"value":675}," function",{"type":50,"tag":168,"props":677,"children":679},{"style":678},"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF",[680],{"type":55,"value":681}," Button",{"type":50,"tag":168,"props":683,"children":684},{"style":196},[685],{"type":55,"value":686},"({",{"type":50,"tag":168,"props":688,"children":690},{"style":689},"--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#EEFFFF;--shiki-default-font-style:italic;--shiki-dark:#BABED8;--shiki-dark-font-style:italic",[691],{"type":55,"value":692}," children",{"type":50,"tag":168,"props":694,"children":695},{"style":196},[696],{"type":55,"value":697}," })",{"type":50,"tag":168,"props":699,"children":700},{"style":196},[701],{"type":55,"value":275},{"type":50,"tag":168,"props":703,"children":704},{"class":170,"line":278},[705,710,715,720,725,730,735,740,745,750,755,760,764],{"type":50,"tag":168,"props":706,"children":707},{"style":185},[708],{"type":55,"value":709},"  return",{"type":50,"tag":168,"props":711,"children":712},{"style":196},[713],{"type":55,"value":714}," \u003C",{"type":50,"tag":168,"props":716,"children":717},{"style":282},[718],{"type":55,"value":719},"button",{"type":50,"tag":168,"props":721,"children":722},{"style":247},[723],{"type":55,"value":724}," className",{"type":50,"tag":168,"props":726,"children":727},{"style":196},[728],{"type":55,"value":729},"={",{"type":50,"tag":168,"props":731,"children":732},{"style":202},[733],{"type":55,"value":734},"styles",{"type":50,"tag":168,"props":736,"children":737},{"style":196},[738],{"type":55,"value":739},".",{"type":50,"tag":168,"props":741,"children":742},{"style":202},[743],{"type":55,"value":744},"primary",{"type":50,"tag":168,"props":746,"children":747},{"style":196},[748],{"type":55,"value":749},"}>{",{"type":50,"tag":168,"props":751,"children":752},{"style":202},[753],{"type":55,"value":754},"children",{"type":50,"tag":168,"props":756,"children":757},{"style":196},[758],{"type":55,"value":759},"}\u003C\u002F",{"type":50,"tag":168,"props":761,"children":762},{"style":282},[763],{"type":55,"value":719},{"type":50,"tag":168,"props":765,"children":766},{"style":196},[767],{"type":55,"value":768},">\n",{"type":50,"tag":168,"props":770,"children":771},{"class":170,"line":296},[772],{"type":50,"tag":168,"props":773,"children":774},{"style":196},[775],{"type":55,"value":505},{"type":50,"tag":545,"props":777,"children":779},{"id":778},"postcss",[780],{"type":55,"value":781},"PostCSS",{"type":50,"tag":58,"props":783,"children":784},{},[785,787,793],{"type":55,"value":786},"Turbopack reads your ",{"type":50,"tag":148,"props":788,"children":790},{"className":789},[],[791],{"type":55,"value":792},"postcss.config.js",{"type":55,"value":794}," automatically. Tailwind CSS v4 works with zero config:",{"type":50,"tag":157,"props":796,"children":798},{"className":159,"code":797,"language":161,"meta":162,"style":162},"\u002F\u002F postcss.config.js\nmodule.exports = {\n  plugins: {\n    '@tailwindcss\u002Fpostcss': {},\n    autoprefixer: {},\n  },\n}\n",[799],{"type":50,"tag":148,"props":800,"children":801},{"__ignoreMap":162},[802,810,826,842,868,884,891],{"type":50,"tag":168,"props":803,"children":804},{"class":170,"line":171},[805],{"type":50,"tag":168,"props":806,"children":807},{"style":175},[808],{"type":55,"value":809},"\u002F\u002F postcss.config.js\n",{"type":50,"tag":168,"props":811,"children":812},{"class":170,"line":181},[813,818,822],{"type":50,"tag":168,"props":814,"children":815},{"style":196},[816],{"type":55,"value":817},"module.exports",{"type":50,"tag":168,"props":819,"children":820},{"style":196},[821],{"type":55,"value":270},{"type":50,"tag":168,"props":823,"children":824},{"style":196},[825],{"type":55,"value":275},{"type":50,"tag":168,"props":827,"children":828},{"class":170,"line":234},[829,834,838],{"type":50,"tag":168,"props":830,"children":831},{"style":282},[832],{"type":55,"value":833},"  plugins",{"type":50,"tag":168,"props":835,"children":836},{"style":196},[837],{"type":55,"value":260},{"type":50,"tag":168,"props":839,"children":840},{"style":196},[841],{"type":55,"value":275},{"type":50,"tag":168,"props":843,"children":844},{"class":170,"line":36},[845,850,855,859,863],{"type":50,"tag":168,"props":846,"children":847},{"style":196},[848],{"type":55,"value":849},"    '",{"type":50,"tag":168,"props":851,"children":852},{"style":282},[853],{"type":55,"value":854},"@tailwindcss\u002Fpostcss",{"type":50,"tag":168,"props":856,"children":857},{"style":196},[858],{"type":55,"value":338},{"type":50,"tag":168,"props":860,"children":861},{"style":196},[862],{"type":55,"value":260},{"type":50,"tag":168,"props":864,"children":865},{"style":196},[866],{"type":55,"value":867}," {},\n",{"type":50,"tag":168,"props":869,"children":870},{"class":170,"line":278},[871,876,880],{"type":50,"tag":168,"props":872,"children":873},{"style":282},[874],{"type":55,"value":875},"    autoprefixer",{"type":50,"tag":168,"props":877,"children":878},{"style":196},[879],{"type":55,"value":260},{"type":50,"tag":168,"props":881,"children":882},{"style":196},[883],{"type":55,"value":867},{"type":50,"tag":168,"props":885,"children":886},{"class":170,"line":296},[887],{"type":50,"tag":168,"props":888,"children":889},{"style":196},[890],{"type":55,"value":496},{"type":50,"tag":168,"props":892,"children":893},{"class":170,"line":305},[894],{"type":50,"tag":168,"props":895,"children":896},{"style":196},[897],{"type":55,"value":505},{"type":50,"tag":545,"props":899,"children":901},{"id":900},"sass-scss",[902],{"type":55,"value":903},"Sass \u002F SCSS",{"type":50,"tag":58,"props":905,"children":906},{},[907,909,915,917,923],{"type":55,"value":908},"Install ",{"type":50,"tag":148,"props":910,"children":912},{"className":911},[],[913],{"type":55,"value":914},"sass",{"type":55,"value":916}," and import ",{"type":50,"tag":148,"props":918,"children":920},{"className":919},[],[921],{"type":55,"value":922},".scss",{"type":55,"value":924}," files directly — Turbopack compiles them natively:",{"type":50,"tag":157,"props":926,"children":930},{"className":927,"code":928,"language":929,"meta":162,"style":162},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","npm install sass\n","bash",[931],{"type":50,"tag":148,"props":932,"children":933},{"__ignoreMap":162},[934],{"type":50,"tag":168,"props":935,"children":936},{"class":170,"line":171},[937,942,947],{"type":50,"tag":168,"props":938,"children":939},{"style":263},[940],{"type":55,"value":941},"npm",{"type":50,"tag":168,"props":943,"children":944},{"style":223},[945],{"type":55,"value":946}," install",{"type":50,"tag":168,"props":948,"children":949},{"style":223},[950],{"type":55,"value":951}," sass\n",{"type":50,"tag":157,"props":953,"children":955},{"className":558,"code":954,"language":560,"meta":162,"style":162},"import styles from '.\u002FComponent.module.scss'\n",[956],{"type":50,"tag":148,"props":957,"children":958},{"__ignoreMap":162},[959],{"type":50,"tag":168,"props":960,"children":961},{"class":170,"line":171},[962,966,970,974,978,983],{"type":50,"tag":168,"props":963,"children":964},{"style":185},[965],{"type":55,"value":188},{"type":50,"tag":168,"props":967,"children":968},{"style":202},[969],{"type":55,"value":638},{"type":50,"tag":168,"props":971,"children":972},{"style":185},[973],{"type":55,"value":643},{"type":50,"tag":168,"props":975,"children":976},{"style":196},[977],{"type":55,"value":220},{"type":50,"tag":168,"props":979,"children":980},{"style":223},[981],{"type":55,"value":982},".\u002FComponent.module.scss",{"type":50,"tag":168,"props":984,"children":985},{"style":196},[986],{"type":55,"value":231},{"type":50,"tag":545,"props":988,"children":990},{"id":989},"common-css-pitfalls",[991],{"type":55,"value":992},"Common CSS pitfalls",{"type":50,"tag":71,"props":994,"children":995},{},[996,1006,1029],{"type":50,"tag":75,"props":997,"children":998},{},[999,1004],{"type":50,"tag":79,"props":1000,"children":1001},{},[1002],{"type":55,"value":1003},"CSS ordering differs from webpack",{"type":55,"value":1005},": Turbopack may load CSS chunks in a different order. Avoid relying on source-order specificity across files — use more specific selectors or CSS Modules.",{"type":50,"tag":75,"props":1007,"children":1008},{},[1009,1020,1022,1027],{"type":50,"tag":79,"props":1010,"children":1011},{},[1012,1018],{"type":50,"tag":148,"props":1013,"children":1015},{"className":1014},[],[1016],{"type":55,"value":1017},"@import",{"type":55,"value":1019}," in global CSS",{"type":55,"value":1021},": Use standard CSS ",{"type":50,"tag":148,"props":1023,"children":1025},{"className":1024},[],[1026],{"type":55,"value":1017},{"type":55,"value":1028}," — Turbopack resolves them, but circular imports cause build failures.",{"type":50,"tag":75,"props":1030,"children":1031},{},[1032,1037,1039,1045,1047,1053,1055,1061],{"type":50,"tag":79,"props":1033,"children":1034},{},[1035],{"type":55,"value":1036},"CSS-in-JS libraries",{"type":55,"value":1038},": ",{"type":50,"tag":148,"props":1040,"children":1042},{"className":1041},[],[1043],{"type":55,"value":1044},"styled-components",{"type":55,"value":1046}," and ",{"type":50,"tag":148,"props":1048,"children":1050},{"className":1049},[],[1051],{"type":55,"value":1052},"emotion",{"type":55,"value":1054}," work but require their SWC plugins configured under ",{"type":50,"tag":148,"props":1056,"children":1058},{"className":1057},[],[1059],{"type":55,"value":1060},"compiler",{"type":55,"value":1062}," in next.config.",{"type":50,"tag":64,"props":1064,"children":1066},{"id":1065},"tree-shaking",[1067],{"type":55,"value":1068},"Tree Shaking",{"type":50,"tag":58,"props":1070,"children":1071},{},[1072],{"type":55,"value":1073},"Turbopack performs tree shaking at the module level in production builds. Key behaviors:",{"type":50,"tag":71,"props":1075,"children":1076},{},[1077,1100],{"type":50,"tag":75,"props":1078,"children":1079},{},[1080,1085,1087,1092,1094],{"type":50,"tag":79,"props":1081,"children":1082},{},[1083],{"type":55,"value":1084},"ES module exports",{"type":55,"value":1086},": Only used exports are included — write ",{"type":50,"tag":148,"props":1088,"children":1090},{"className":1089},[],[1091],{"type":55,"value":522},{"type":55,"value":1093}," on each function\u002Fconstant rather than barrel ",{"type":50,"tag":148,"props":1095,"children":1097},{"className":1096},[],[1098],{"type":55,"value":1099},"export *",{"type":50,"tag":75,"props":1101,"children":1102},{},[1103,1108,1110,1116],{"type":50,"tag":79,"props":1104,"children":1105},{},[1106],{"type":55,"value":1107},"Side-effect-free packages",{"type":55,"value":1109},": Mark packages as side-effect-free in ",{"type":50,"tag":148,"props":1111,"children":1113},{"className":1112},[],[1114],{"type":55,"value":1115},"package.json",{"type":55,"value":1117}," to enable aggressive tree shaking:",{"type":50,"tag":157,"props":1119,"children":1123},{"className":1120,"code":1121,"language":1122,"meta":162,"style":162},"language-json shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","{\n  \"name\": \"my-ui-lib\",\n  \"sideEffects\": false\n}\n","json",[1124],{"type":50,"tag":148,"props":1125,"children":1126},{"__ignoreMap":162},[1127,1135,1175,1200],{"type":50,"tag":168,"props":1128,"children":1129},{"class":170,"line":171},[1130],{"type":50,"tag":168,"props":1131,"children":1132},{"style":196},[1133],{"type":55,"value":1134},"{\n",{"type":50,"tag":168,"props":1136,"children":1137},{"class":170,"line":181},[1138,1143,1148,1153,1157,1162,1167,1171],{"type":50,"tag":168,"props":1139,"children":1140},{"style":196},[1141],{"type":55,"value":1142},"  \"",{"type":50,"tag":168,"props":1144,"children":1145},{"style":247},[1146],{"type":55,"value":1147},"name",{"type":50,"tag":168,"props":1149,"children":1150},{"style":196},[1151],{"type":55,"value":1152},"\"",{"type":50,"tag":168,"props":1154,"children":1155},{"style":196},[1156],{"type":55,"value":260},{"type":50,"tag":168,"props":1158,"children":1159},{"style":196},[1160],{"type":55,"value":1161}," \"",{"type":50,"tag":168,"props":1163,"children":1164},{"style":223},[1165],{"type":55,"value":1166},"my-ui-lib",{"type":50,"tag":168,"props":1168,"children":1169},{"style":196},[1170],{"type":55,"value":1152},{"type":50,"tag":168,"props":1172,"children":1173},{"style":196},[1174],{"type":55,"value":360},{"type":50,"tag":168,"props":1176,"children":1177},{"class":170,"line":234},[1178,1182,1187,1191,1195],{"type":50,"tag":168,"props":1179,"children":1180},{"style":196},[1181],{"type":55,"value":1142},{"type":50,"tag":168,"props":1183,"children":1184},{"style":247},[1185],{"type":55,"value":1186},"sideEffects",{"type":50,"tag":168,"props":1188,"children":1189},{"style":196},[1190],{"type":55,"value":1152},{"type":50,"tag":168,"props":1192,"children":1193},{"style":196},[1194],{"type":55,"value":260},{"type":50,"tag":168,"props":1196,"children":1197},{"style":196},[1198],{"type":55,"value":1199}," false\n",{"type":50,"tag":168,"props":1201,"children":1202},{"class":170,"line":36},[1203],{"type":50,"tag":168,"props":1204,"children":1205},{"style":196},[1206],{"type":55,"value":505},{"type":50,"tag":71,"props":1208,"children":1209},{},[1210,1234],{"type":50,"tag":75,"props":1211,"children":1212},{},[1213,1218,1220,1226,1228],{"type":50,"tag":79,"props":1214,"children":1215},{},[1216],{"type":55,"value":1217},"Barrel file optimization",{"type":55,"value":1219},": Turbopack can skip unused re-exports from barrel files (",{"type":50,"tag":148,"props":1221,"children":1223},{"className":1222},[],[1224],{"type":55,"value":1225},"index.ts",{"type":55,"value":1227},") when the package declares ",{"type":50,"tag":148,"props":1229,"children":1231},{"className":1230},[],[1232],{"type":55,"value":1233},"\"sideEffects\": false",{"type":50,"tag":75,"props":1235,"children":1236},{},[1237,1242,1243,1249],{"type":50,"tag":79,"props":1238,"children":1239},{},[1240],{"type":55,"value":1241},"Dynamic imports",{"type":55,"value":1038},{"type":50,"tag":148,"props":1244,"children":1246},{"className":1245},[],[1247],{"type":55,"value":1248},"import()",{"type":55,"value":1250}," expressions create async chunk boundaries — Turbopack splits these into separate chunks automatically",{"type":50,"tag":545,"props":1252,"children":1254},{"id":1253},"diagnosing-large-bundles",[1255],{"type":55,"value":1256},"Diagnosing large bundles",{"type":50,"tag":58,"props":1258,"children":1259},{},[1260,1265],{"type":50,"tag":79,"props":1261,"children":1262},{},[1263],{"type":55,"value":1264},"Built-in analyzer (Next.js 16.1+, experimental)",{"type":55,"value":1266},": Works natively with Turbopack. Offers route-specific filtering, import tracing, and RSC boundary analysis:",{"type":50,"tag":157,"props":1268,"children":1272},{"className":1269,"code":1270,"language":1271,"meta":162,"style":162},"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","\u002F\u002F next.config.ts\nconst nextConfig: NextConfig = {\n  experimental: {\n    bundleAnalyzer: true,\n  },\n}\n","ts",[1273],{"type":50,"tag":148,"props":1274,"children":1275},{"__ignoreMap":162},[1276,1283,1310,1326,1348,1355],{"type":50,"tag":168,"props":1277,"children":1278},{"class":170,"line":171},[1279],{"type":50,"tag":168,"props":1280,"children":1281},{"style":175},[1282],{"type":55,"value":178},{"type":50,"tag":168,"props":1284,"children":1285},{"class":170,"line":181},[1286,1290,1294,1298,1302,1306],{"type":50,"tag":168,"props":1287,"children":1288},{"style":247},[1289],{"type":55,"value":250},{"type":50,"tag":168,"props":1291,"children":1292},{"style":202},[1293],{"type":55,"value":255},{"type":50,"tag":168,"props":1295,"children":1296},{"style":196},[1297],{"type":55,"value":260},{"type":50,"tag":168,"props":1299,"children":1300},{"style":263},[1301],{"type":55,"value":205},{"type":50,"tag":168,"props":1303,"children":1304},{"style":196},[1305],{"type":55,"value":270},{"type":50,"tag":168,"props":1307,"children":1308},{"style":196},[1309],{"type":55,"value":275},{"type":50,"tag":168,"props":1311,"children":1312},{"class":170,"line":234},[1313,1318,1322],{"type":50,"tag":168,"props":1314,"children":1315},{"style":282},[1316],{"type":55,"value":1317},"  experimental",{"type":50,"tag":168,"props":1319,"children":1320},{"style":196},[1321],{"type":55,"value":260},{"type":50,"tag":168,"props":1323,"children":1324},{"style":196},[1325],{"type":55,"value":275},{"type":50,"tag":168,"props":1327,"children":1328},{"class":170,"line":36},[1329,1334,1338,1344],{"type":50,"tag":168,"props":1330,"children":1331},{"style":282},[1332],{"type":55,"value":1333},"    bundleAnalyzer",{"type":50,"tag":168,"props":1335,"children":1336},{"style":196},[1337],{"type":55,"value":260},{"type":50,"tag":168,"props":1339,"children":1341},{"style":1340},"--shiki-light:#FF5370;--shiki-default:#FF9CAC;--shiki-dark:#FF9CAC",[1342],{"type":55,"value":1343}," true",{"type":50,"tag":168,"props":1345,"children":1346},{"style":196},[1347],{"type":55,"value":360},{"type":50,"tag":168,"props":1349,"children":1350},{"class":170,"line":278},[1351],{"type":50,"tag":168,"props":1352,"children":1353},{"style":196},[1354],{"type":55,"value":496},{"type":50,"tag":168,"props":1356,"children":1357},{"class":170,"line":296},[1358],{"type":50,"tag":168,"props":1359,"children":1360},{"style":196},[1361],{"type":55,"value":505},{"type":50,"tag":58,"props":1363,"children":1364},{},[1365,1376],{"type":50,"tag":79,"props":1366,"children":1367},{},[1368,1370],{"type":55,"value":1369},"Legacy ",{"type":50,"tag":148,"props":1371,"children":1373},{"className":1372},[],[1374],{"type":55,"value":1375},"@next\u002Fbundle-analyzer",{"type":55,"value":1377},": Still works as a fallback:",{"type":50,"tag":157,"props":1379,"children":1381},{"className":927,"code":1380,"language":929,"meta":162,"style":162},"ANALYZE=true next build\n",[1382],{"type":50,"tag":148,"props":1383,"children":1384},{"__ignoreMap":162},[1385],{"type":50,"tag":168,"props":1386,"children":1387},{"class":170,"line":171},[1388,1393,1398,1403,1408],{"type":50,"tag":168,"props":1389,"children":1390},{"style":202},[1391],{"type":55,"value":1392},"ANALYZE",{"type":50,"tag":168,"props":1394,"children":1395},{"style":196},[1396],{"type":55,"value":1397},"=",{"type":50,"tag":168,"props":1399,"children":1400},{"style":223},[1401],{"type":55,"value":1402},"true",{"type":50,"tag":168,"props":1404,"children":1405},{"style":263},[1406],{"type":55,"value":1407}," next",{"type":50,"tag":168,"props":1409,"children":1410},{"style":223},[1411],{"type":55,"value":1412}," build\n",{"type":50,"tag":157,"props":1414,"children":1416},{"className":1269,"code":1415,"language":1271,"meta":162,"style":162},"\u002F\u002F next.config.ts\nimport withBundleAnalyzer from '@next\u002Fbundle-analyzer'\n\nconst nextConfig = withBundleAnalyzer({\n  enabled: process.env.ANALYZE === 'true',\n})({\n  \u002F\u002F your config\n})\n",[1417],{"type":50,"tag":148,"props":1418,"children":1419},{"__ignoreMap":162},[1420,1427,1455,1462,1492,1548,1565,1573],{"type":50,"tag":168,"props":1421,"children":1422},{"class":170,"line":171},[1423],{"type":50,"tag":168,"props":1424,"children":1425},{"style":175},[1426],{"type":55,"value":178},{"type":50,"tag":168,"props":1428,"children":1429},{"class":170,"line":181},[1430,1434,1439,1443,1447,1451],{"type":50,"tag":168,"props":1431,"children":1432},{"style":185},[1433],{"type":55,"value":188},{"type":50,"tag":168,"props":1435,"children":1436},{"style":202},[1437],{"type":55,"value":1438}," withBundleAnalyzer ",{"type":50,"tag":168,"props":1440,"children":1441},{"style":185},[1442],{"type":55,"value":643},{"type":50,"tag":168,"props":1444,"children":1445},{"style":196},[1446],{"type":55,"value":220},{"type":50,"tag":168,"props":1448,"children":1449},{"style":223},[1450],{"type":55,"value":1375},{"type":50,"tag":168,"props":1452,"children":1453},{"style":196},[1454],{"type":55,"value":231},{"type":50,"tag":168,"props":1456,"children":1457},{"class":170,"line":234},[1458],{"type":50,"tag":168,"props":1459,"children":1460},{"emptyLinePlaceholder":238},[1461],{"type":55,"value":241},{"type":50,"tag":168,"props":1463,"children":1464},{"class":170,"line":36},[1465,1469,1474,1478,1483,1488],{"type":50,"tag":168,"props":1466,"children":1467},{"style":247},[1468],{"type":55,"value":250},{"type":50,"tag":168,"props":1470,"children":1471},{"style":202},[1472],{"type":55,"value":1473}," nextConfig ",{"type":50,"tag":168,"props":1475,"children":1476},{"style":196},[1477],{"type":55,"value":1397},{"type":50,"tag":168,"props":1479,"children":1480},{"style":678},[1481],{"type":55,"value":1482}," withBundleAnalyzer",{"type":50,"tag":168,"props":1484,"children":1485},{"style":202},[1486],{"type":55,"value":1487},"(",{"type":50,"tag":168,"props":1489,"children":1490},{"style":196},[1491],{"type":55,"value":1134},{"type":50,"tag":168,"props":1493,"children":1494},{"class":170,"line":278},[1495,1500,1504,1509,1513,1518,1522,1527,1532,1536,1540,1544],{"type":50,"tag":168,"props":1496,"children":1497},{"style":282},[1498],{"type":55,"value":1499},"  enabled",{"type":50,"tag":168,"props":1501,"children":1502},{"style":196},[1503],{"type":55,"value":260},{"type":50,"tag":168,"props":1505,"children":1506},{"style":202},[1507],{"type":55,"value":1508}," process",{"type":50,"tag":168,"props":1510,"children":1511},{"style":196},[1512],{"type":55,"value":739},{"type":50,"tag":168,"props":1514,"children":1515},{"style":202},[1516],{"type":55,"value":1517},"env",{"type":50,"tag":168,"props":1519,"children":1520},{"style":196},[1521],{"type":55,"value":739},{"type":50,"tag":168,"props":1523,"children":1524},{"style":202},[1525],{"type":55,"value":1526},"ANALYZE ",{"type":50,"tag":168,"props":1528,"children":1529},{"style":196},[1530],{"type":55,"value":1531},"===",{"type":50,"tag":168,"props":1533,"children":1534},{"style":196},[1535],{"type":55,"value":220},{"type":50,"tag":168,"props":1537,"children":1538},{"style":223},[1539],{"type":55,"value":1402},{"type":50,"tag":168,"props":1541,"children":1542},{"style":196},[1543],{"type":55,"value":338},{"type":50,"tag":168,"props":1545,"children":1546},{"style":196},[1547],{"type":55,"value":360},{"type":50,"tag":168,"props":1549,"children":1550},{"class":170,"line":296},[1551,1556,1561],{"type":50,"tag":168,"props":1552,"children":1553},{"style":196},[1554],{"type":55,"value":1555},"}",{"type":50,"tag":168,"props":1557,"children":1558},{"style":202},[1559],{"type":55,"value":1560},")(",{"type":50,"tag":168,"props":1562,"children":1563},{"style":196},[1564],{"type":55,"value":1134},{"type":50,"tag":168,"props":1566,"children":1567},{"class":170,"line":305},[1568],{"type":50,"tag":168,"props":1569,"children":1570},{"style":175},[1571],{"type":55,"value":1572},"  \u002F\u002F your config\n",{"type":50,"tag":168,"props":1574,"children":1575},{"class":170,"line":322},[1576,1580],{"type":50,"tag":168,"props":1577,"children":1578},{"style":196},[1579],{"type":55,"value":1555},{"type":50,"tag":168,"props":1581,"children":1582},{"style":202},[1583],{"type":55,"value":1584},")\n",{"type":50,"tag":64,"props":1586,"children":1588},{"id":1587},"custom-loader-migration-from-webpack",[1589],{"type":55,"value":1590},"Custom Loader Migration from Webpack",{"type":50,"tag":58,"props":1592,"children":1593},{},[1594],{"type":55,"value":1595},"Turbopack does not support webpack loaders directly. Here is how to migrate common patterns:",{"type":50,"tag":1597,"props":1598,"children":1599},"table",{},[1600,1619],{"type":50,"tag":1601,"props":1602,"children":1603},"thead",{},[1604],{"type":50,"tag":1605,"props":1606,"children":1607},"tr",{},[1608,1614],{"type":50,"tag":1609,"props":1610,"children":1611},"th",{},[1612],{"type":55,"value":1613},"Webpack Loader",{"type":50,"tag":1609,"props":1615,"children":1616},{},[1617],{"type":55,"value":1618},"Turbopack Equivalent",{"type":50,"tag":1620,"props":1621,"children":1622},"tbody",{},[1623,1649,1673,1695,1720,1757,1779,1796],{"type":50,"tag":1605,"props":1624,"children":1625},{},[1626,1644],{"type":50,"tag":1627,"props":1628,"children":1629},"td",{},[1630,1636,1638],{"type":50,"tag":148,"props":1631,"children":1633},{"className":1632},[],[1634],{"type":55,"value":1635},"css-loader",{"type":55,"value":1637}," + ",{"type":50,"tag":148,"props":1639,"children":1641},{"className":1640},[],[1642],{"type":55,"value":1643},"style-loader",{"type":50,"tag":1627,"props":1645,"children":1646},{},[1647],{"type":55,"value":1648},"Built-in CSS support — remove loaders",{"type":50,"tag":1605,"props":1650,"children":1651},{},[1652,1661],{"type":50,"tag":1627,"props":1653,"children":1654},{},[1655],{"type":50,"tag":148,"props":1656,"children":1658},{"className":1657},[],[1659],{"type":55,"value":1660},"sass-loader",{"type":50,"tag":1627,"props":1662,"children":1663},{},[1664,1666,1671],{"type":55,"value":1665},"Built-in — install ",{"type":50,"tag":148,"props":1667,"children":1669},{"className":1668},[],[1670],{"type":55,"value":914},{"type":55,"value":1672}," package",{"type":50,"tag":1605,"props":1674,"children":1675},{},[1676,1685],{"type":50,"tag":1627,"props":1677,"children":1678},{},[1679],{"type":50,"tag":148,"props":1680,"children":1682},{"className":1681},[],[1683],{"type":55,"value":1684},"postcss-loader",{"type":50,"tag":1627,"props":1686,"children":1687},{},[1688,1690],{"type":55,"value":1689},"Built-in — reads ",{"type":50,"tag":148,"props":1691,"children":1693},{"className":1692},[],[1694],{"type":55,"value":792},{"type":50,"tag":1605,"props":1696,"children":1697},{},[1698,1715],{"type":50,"tag":1627,"props":1699,"children":1700},{},[1701,1707,1709],{"type":50,"tag":148,"props":1702,"children":1704},{"className":1703},[],[1705],{"type":55,"value":1706},"file-loader",{"type":55,"value":1708}," \u002F ",{"type":50,"tag":148,"props":1710,"children":1712},{"className":1711},[],[1713],{"type":55,"value":1714},"url-loader",{"type":50,"tag":1627,"props":1716,"children":1717},{},[1718],{"type":55,"value":1719},"Built-in static asset handling",{"type":50,"tag":1605,"props":1721,"children":1722},{},[1723,1739],{"type":50,"tag":1627,"props":1724,"children":1725},{},[1726,1732,1733],{"type":50,"tag":148,"props":1727,"children":1729},{"className":1728},[],[1730],{"type":55,"value":1731},"svgr",{"type":55,"value":1708},{"type":50,"tag":148,"props":1734,"children":1736},{"className":1735},[],[1737],{"type":55,"value":1738},"@svgr\u002Fwebpack",{"type":50,"tag":1627,"props":1740,"children":1741},{},[1742,1744,1749,1751],{"type":55,"value":1743},"Use ",{"type":50,"tag":148,"props":1745,"children":1747},{"className":1746},[],[1748],{"type":55,"value":1738},{"type":55,"value":1750}," via ",{"type":50,"tag":148,"props":1752,"children":1754},{"className":1753},[],[1755],{"type":55,"value":1756},"turbopack.rules",{"type":50,"tag":1605,"props":1758,"children":1759},{},[1760,1769],{"type":50,"tag":1627,"props":1761,"children":1762},{},[1763],{"type":50,"tag":148,"props":1764,"children":1766},{"className":1765},[],[1767],{"type":55,"value":1768},"raw-loader",{"type":50,"tag":1627,"props":1770,"children":1771},{},[1772,1773],{"type":55,"value":1743},{"type":50,"tag":148,"props":1774,"children":1776},{"className":1775},[],[1777],{"type":55,"value":1778},"import x from '.\u002Ffile?raw'",{"type":50,"tag":1605,"props":1780,"children":1781},{},[1782,1791],{"type":50,"tag":1627,"props":1783,"children":1784},{},[1785],{"type":50,"tag":148,"props":1786,"children":1788},{"className":1787},[],[1789],{"type":55,"value":1790},"graphql-tag\u002Floader",{"type":50,"tag":1627,"props":1792,"children":1793},{},[1794],{"type":55,"value":1795},"Use a build-time codegen step instead",{"type":50,"tag":1605,"props":1797,"children":1798},{},[1799,1808],{"type":50,"tag":1627,"props":1800,"children":1801},{},[1802],{"type":50,"tag":148,"props":1803,"children":1805},{"className":1804},[],[1806],{"type":55,"value":1807},"worker-loader",{"type":50,"tag":1627,"props":1809,"children":1810},{},[1811,1813,1819],{"type":55,"value":1812},"Use native ",{"type":50,"tag":148,"props":1814,"children":1816},{"className":1815},[],[1817],{"type":55,"value":1818},"new Worker(new URL(...))",{"type":55,"value":1820}," syntax",{"type":50,"tag":545,"props":1822,"children":1824},{"id":1823},"configuring-custom-rules-loader-replacement",[1825],{"type":55,"value":1826},"Configuring custom rules (loader replacement)",{"type":50,"tag":58,"props":1828,"children":1829},{},[1830,1832,1837],{"type":55,"value":1831},"For loaders that have no built-in equivalent, use ",{"type":50,"tag":148,"props":1833,"children":1835},{"className":1834},[],[1836],{"type":55,"value":1756},{"type":55,"value":260},{"type":50,"tag":157,"props":1839,"children":1841},{"className":159,"code":1840,"language":161,"meta":162,"style":162},"\u002F\u002F next.config.ts\nconst nextConfig: NextConfig = {\n  turbopack: {\n    rules: {\n      '*.svg': {\n        loaders: ['@svgr\u002Fwebpack'],\n        as: '*.js',\n      },\n    },\n  },\n}\n",[1842],{"type":50,"tag":148,"props":1843,"children":1844},{"__ignoreMap":162},[1845,1852,1879,1894,1910,1934,1970,1999,2007,2014,2021],{"type":50,"tag":168,"props":1846,"children":1847},{"class":170,"line":171},[1848],{"type":50,"tag":168,"props":1849,"children":1850},{"style":175},[1851],{"type":55,"value":178},{"type":50,"tag":168,"props":1853,"children":1854},{"class":170,"line":181},[1855,1859,1863,1867,1871,1875],{"type":50,"tag":168,"props":1856,"children":1857},{"style":247},[1858],{"type":55,"value":250},{"type":50,"tag":168,"props":1860,"children":1861},{"style":202},[1862],{"type":55,"value":255},{"type":50,"tag":168,"props":1864,"children":1865},{"style":196},[1866],{"type":55,"value":260},{"type":50,"tag":168,"props":1868,"children":1869},{"style":263},[1870],{"type":55,"value":205},{"type":50,"tag":168,"props":1872,"children":1873},{"style":196},[1874],{"type":55,"value":270},{"type":50,"tag":168,"props":1876,"children":1877},{"style":196},[1878],{"type":55,"value":275},{"type":50,"tag":168,"props":1880,"children":1881},{"class":170,"line":234},[1882,1886,1890],{"type":50,"tag":168,"props":1883,"children":1884},{"style":282},[1885],{"type":55,"value":285},{"type":50,"tag":168,"props":1887,"children":1888},{"style":196},[1889],{"type":55,"value":260},{"type":50,"tag":168,"props":1891,"children":1892},{"style":196},[1893],{"type":55,"value":275},{"type":50,"tag":168,"props":1895,"children":1896},{"class":170,"line":36},[1897,1902,1906],{"type":50,"tag":168,"props":1898,"children":1899},{"style":282},[1900],{"type":55,"value":1901},"    rules",{"type":50,"tag":168,"props":1903,"children":1904},{"style":196},[1905],{"type":55,"value":260},{"type":50,"tag":168,"props":1907,"children":1908},{"style":196},[1909],{"type":55,"value":275},{"type":50,"tag":168,"props":1911,"children":1912},{"class":170,"line":278},[1913,1917,1922,1926,1930],{"type":50,"tag":168,"props":1914,"children":1915},{"style":196},[1916],{"type":55,"value":328},{"type":50,"tag":168,"props":1918,"children":1919},{"style":282},[1920],{"type":55,"value":1921},"*.svg",{"type":50,"tag":168,"props":1923,"children":1924},{"style":196},[1925],{"type":55,"value":338},{"type":50,"tag":168,"props":1927,"children":1928},{"style":196},[1929],{"type":55,"value":260},{"type":50,"tag":168,"props":1931,"children":1932},{"style":196},[1933],{"type":55,"value":275},{"type":50,"tag":168,"props":1935,"children":1936},{"class":170,"line":296},[1937,1942,1946,1950,1954,1958,1962,1966],{"type":50,"tag":168,"props":1938,"children":1939},{"style":282},[1940],{"type":55,"value":1941},"        loaders",{"type":50,"tag":168,"props":1943,"children":1944},{"style":196},[1945],{"type":55,"value":260},{"type":50,"tag":168,"props":1947,"children":1948},{"style":202},[1949],{"type":55,"value":396},{"type":50,"tag":168,"props":1951,"children":1952},{"style":196},[1953],{"type":55,"value":338},{"type":50,"tag":168,"props":1955,"children":1956},{"style":223},[1957],{"type":55,"value":1738},{"type":50,"tag":168,"props":1959,"children":1960},{"style":196},[1961],{"type":55,"value":338},{"type":50,"tag":168,"props":1963,"children":1964},{"style":202},[1965],{"type":55,"value":483},{"type":50,"tag":168,"props":1967,"children":1968},{"style":196},[1969],{"type":55,"value":360},{"type":50,"tag":168,"props":1971,"children":1972},{"class":170,"line":305},[1973,1978,1982,1986,1991,1995],{"type":50,"tag":168,"props":1974,"children":1975},{"style":282},[1976],{"type":55,"value":1977},"        as",{"type":50,"tag":168,"props":1979,"children":1980},{"style":196},[1981],{"type":55,"value":260},{"type":50,"tag":168,"props":1983,"children":1984},{"style":196},[1985],{"type":55,"value":220},{"type":50,"tag":168,"props":1987,"children":1988},{"style":223},[1989],{"type":55,"value":1990},"*.js",{"type":50,"tag":168,"props":1992,"children":1993},{"style":196},[1994],{"type":55,"value":338},{"type":50,"tag":168,"props":1996,"children":1997},{"style":196},[1998],{"type":55,"value":360},{"type":50,"tag":168,"props":2000,"children":2001},{"class":170,"line":322},[2002],{"type":50,"tag":168,"props":2003,"children":2004},{"style":196},[2005],{"type":55,"value":2006},"      },\n",{"type":50,"tag":168,"props":2008,"children":2009},{"class":170,"line":363},[2010],{"type":50,"tag":168,"props":2011,"children":2012},{"style":196},[2013],{"type":55,"value":369},{"type":50,"tag":168,"props":2015,"children":2016},{"class":170,"line":372},[2017],{"type":50,"tag":168,"props":2018,"children":2019},{"style":196},[2020],{"type":55,"value":496},{"type":50,"tag":168,"props":2022,"children":2023},{"class":170,"line":381},[2024],{"type":50,"tag":168,"props":2025,"children":2026},{"style":196},[2027],{"type":55,"value":505},{"type":50,"tag":545,"props":2029,"children":2031},{"id":2030},"when-migration-isnt-possible",[2032],{"type":55,"value":2033},"When migration isn't possible",{"type":50,"tag":58,"props":2035,"children":2036},{},[2037],{"type":55,"value":2038},"If a webpack loader has no Turbopack equivalent and no workaround, fall back to webpack:",{"type":50,"tag":157,"props":2040,"children":2042},{"className":159,"code":2041,"language":161,"meta":162,"style":162},"const nextConfig: NextConfig = {\n  bundler: 'webpack',\n}\n",[2043],{"type":50,"tag":148,"props":2044,"children":2045},{"__ignoreMap":162},[2046,2073,2102],{"type":50,"tag":168,"props":2047,"children":2048},{"class":170,"line":171},[2049,2053,2057,2061,2065,2069],{"type":50,"tag":168,"props":2050,"children":2051},{"style":247},[2052],{"type":55,"value":250},{"type":50,"tag":168,"props":2054,"children":2055},{"style":202},[2056],{"type":55,"value":255},{"type":50,"tag":168,"props":2058,"children":2059},{"style":196},[2060],{"type":55,"value":260},{"type":50,"tag":168,"props":2062,"children":2063},{"style":263},[2064],{"type":55,"value":205},{"type":50,"tag":168,"props":2066,"children":2067},{"style":196},[2068],{"type":55,"value":270},{"type":50,"tag":168,"props":2070,"children":2071},{"style":196},[2072],{"type":55,"value":275},{"type":50,"tag":168,"props":2074,"children":2075},{"class":170,"line":181},[2076,2081,2085,2089,2094,2098],{"type":50,"tag":168,"props":2077,"children":2078},{"style":282},[2079],{"type":55,"value":2080},"  bundler",{"type":50,"tag":168,"props":2082,"children":2083},{"style":196},[2084],{"type":55,"value":260},{"type":50,"tag":168,"props":2086,"children":2087},{"style":196},[2088],{"type":55,"value":220},{"type":50,"tag":168,"props":2090,"children":2091},{"style":223},[2092],{"type":55,"value":2093},"webpack",{"type":50,"tag":168,"props":2095,"children":2096},{"style":196},[2097],{"type":55,"value":338},{"type":50,"tag":168,"props":2099,"children":2100},{"style":196},[2101],{"type":55,"value":360},{"type":50,"tag":168,"props":2103,"children":2104},{"class":170,"line":234},[2105],{"type":50,"tag":168,"props":2106,"children":2107},{"style":196},[2108],{"type":55,"value":505},{"type":50,"tag":58,"props":2110,"children":2111},{},[2112,2114,2123],{"type":55,"value":2113},"File an issue at ",{"type":50,"tag":2115,"props":2116,"children":2120},"a",{"href":2117,"rel":2118},"https:\u002F\u002Fgithub.com\u002Fvercel\u002Fnext.js",[2119],"nofollow",[2121],{"type":55,"value":2122},"github.com\u002Fvercel\u002Fnext.js",{"type":55,"value":2124}," — the Turbopack team tracks loader parity requests.",{"type":50,"tag":64,"props":2126,"children":2128},{"id":2127},"production-build-diagnostics",[2129],{"type":55,"value":2130},"Production Build Diagnostics",{"type":50,"tag":545,"props":2132,"children":2134},{"id":2133},"build-failing-with-turbopack",[2135],{"type":55,"value":2136},"Build failing with Turbopack",{"type":50,"tag":2138,"props":2139,"children":2140},"ol",{},[2141,2159,2174,2200],{"type":50,"tag":75,"props":2142,"children":2143},{},[2144,2149,2151,2157],{"type":50,"tag":79,"props":2145,"children":2146},{},[2147],{"type":55,"value":2148},"Check for unsupported config",{"type":55,"value":2150},": Remove any ",{"type":50,"tag":148,"props":2152,"children":2154},{"className":2153},[],[2155],{"type":55,"value":2156},"webpack()",{"type":55,"value":2158}," function from next.config — it's ignored by Turbopack and may mask the real config",{"type":50,"tag":75,"props":2160,"children":2161},{},[2162,2172],{"type":50,"tag":79,"props":2163,"children":2164},{},[2165,2167],{"type":55,"value":2166},"Verify ",{"type":50,"tag":148,"props":2168,"children":2170},{"className":2169},[],[2171],{"type":55,"value":1756},{"type":55,"value":2173},": Ensure custom rules reference valid loaders that are installed",{"type":50,"tag":75,"props":2175,"children":2176},{},[2177,2182,2184,2190,2192,2198],{"type":50,"tag":79,"props":2178,"children":2179},{},[2180],{"type":55,"value":2181},"Check for Node.js built-in usage in edge\u002Fclient",{"type":55,"value":2183},": Turbopack enforces environment boundaries — ",{"type":50,"tag":148,"props":2185,"children":2187},{"className":2186},[],[2188],{"type":55,"value":2189},"fs",{"type":55,"value":2191},", ",{"type":50,"tag":148,"props":2193,"children":2195},{"className":2194},[],[2196],{"type":55,"value":2197},"path",{"type":55,"value":2199},", etc. cannot be imported in client or edge bundles",{"type":50,"tag":75,"props":2201,"children":2202},{},[2203,2208,2210,2216],{"type":50,"tag":79,"props":2204,"children":2205},{},[2206],{"type":55,"value":2207},"Module not found errors",{"type":55,"value":2209},": Ensure ",{"type":50,"tag":148,"props":2211,"children":2213},{"className":2212},[],[2214],{"type":55,"value":2215},"turbopack.resolveAlias",{"type":55,"value":2217}," covers any custom resolution that was previously in webpack config",{"type":50,"tag":545,"props":2219,"children":2221},{"id":2220},"build-output-too-large",[2222],{"type":55,"value":2223},"Build output too large",{"type":50,"tag":71,"props":2225,"children":2226},{},[2227,2240,2245],{"type":50,"tag":75,"props":2228,"children":2229},{},[2230,2232,2238],{"type":55,"value":2231},"Audit ",{"type":50,"tag":148,"props":2233,"children":2235},{"className":2234},[],[2236],{"type":55,"value":2237},"\"use client\"",{"type":55,"value":2239}," directives — each client component boundary creates a new chunk",{"type":50,"tag":75,"props":2241,"children":2242},{},[2243],{"type":55,"value":2244},"Check for accidentally bundled server-only packages in client components",{"type":50,"tag":75,"props":2246,"children":2247},{},[2248,2249,2255],{"type":55,"value":1743},{"type":50,"tag":148,"props":2250,"children":2252},{"className":2251},[],[2253],{"type":55,"value":2254},"server-only",{"type":55,"value":2256}," package to enforce server\u002Fclient boundaries at import time:",{"type":50,"tag":157,"props":2258,"children":2260},{"className":927,"code":2259,"language":929,"meta":162,"style":162},"npm install server-only\n",[2261],{"type":50,"tag":148,"props":2262,"children":2263},{"__ignoreMap":162},[2264],{"type":50,"tag":168,"props":2265,"children":2266},{"class":170,"line":171},[2267,2271,2275],{"type":50,"tag":168,"props":2268,"children":2269},{"style":263},[2270],{"type":55,"value":941},{"type":50,"tag":168,"props":2272,"children":2273},{"style":223},[2274],{"type":55,"value":946},{"type":50,"tag":168,"props":2276,"children":2277},{"style":223},[2278],{"type":55,"value":2279}," server-only\n",{"type":50,"tag":157,"props":2281,"children":2283},{"className":1269,"code":2282,"language":1271,"meta":162,"style":162},"\u002F\u002F lib\u002Fdb.ts\nimport 'server-only' \u002F\u002F Build fails if imported in a client component\n",[2284],{"type":50,"tag":148,"props":2285,"children":2286},{"__ignoreMap":162},[2287,2295],{"type":50,"tag":168,"props":2288,"children":2289},{"class":170,"line":171},[2290],{"type":50,"tag":168,"props":2291,"children":2292},{"style":175},[2293],{"type":55,"value":2294},"\u002F\u002F lib\u002Fdb.ts\n",{"type":50,"tag":168,"props":2296,"children":2297},{"class":170,"line":181},[2298,2302,2306,2310,2314],{"type":50,"tag":168,"props":2299,"children":2300},{"style":185},[2301],{"type":55,"value":188},{"type":50,"tag":168,"props":2303,"children":2304},{"style":196},[2305],{"type":55,"value":220},{"type":50,"tag":168,"props":2307,"children":2308},{"style":223},[2309],{"type":55,"value":2254},{"type":50,"tag":168,"props":2311,"children":2312},{"style":196},[2313],{"type":55,"value":338},{"type":50,"tag":168,"props":2315,"children":2316},{"style":175},[2317],{"type":55,"value":2318}," \u002F\u002F Build fails if imported in a client component\n",{"type":50,"tag":545,"props":2320,"children":2322},{"id":2321},"comparing-webpack-vs-turbopack-output",[2323],{"type":55,"value":2324},"Comparing webpack vs Turbopack output",{"type":50,"tag":58,"props":2326,"children":2327},{},[2328],{"type":55,"value":2329},"Run both bundlers and compare:",{"type":50,"tag":157,"props":2331,"children":2333},{"className":927,"code":2332,"language":929,"meta":162,"style":162},"# Turbopack build (default in Next.js 16)\nnext build\n\n# Webpack build\nBUNDLER=webpack next build\n",[2334],{"type":50,"tag":148,"props":2335,"children":2336},{"__ignoreMap":162},[2337,2345,2356,2363,2371],{"type":50,"tag":168,"props":2338,"children":2339},{"class":170,"line":171},[2340],{"type":50,"tag":168,"props":2341,"children":2342},{"style":175},[2343],{"type":55,"value":2344},"# Turbopack build (default in Next.js 16)\n",{"type":50,"tag":168,"props":2346,"children":2347},{"class":170,"line":181},[2348,2352],{"type":50,"tag":168,"props":2349,"children":2350},{"style":263},[2351],{"type":55,"value":226},{"type":50,"tag":168,"props":2353,"children":2354},{"style":223},[2355],{"type":55,"value":1412},{"type":50,"tag":168,"props":2357,"children":2358},{"class":170,"line":234},[2359],{"type":50,"tag":168,"props":2360,"children":2361},{"emptyLinePlaceholder":238},[2362],{"type":55,"value":241},{"type":50,"tag":168,"props":2364,"children":2365},{"class":170,"line":36},[2366],{"type":50,"tag":168,"props":2367,"children":2368},{"style":175},[2369],{"type":55,"value":2370},"# Webpack build\n",{"type":50,"tag":168,"props":2372,"children":2373},{"class":170,"line":278},[2374,2379,2383,2387,2391],{"type":50,"tag":168,"props":2375,"children":2376},{"style":202},[2377],{"type":55,"value":2378},"BUNDLER",{"type":50,"tag":168,"props":2380,"children":2381},{"style":196},[2382],{"type":55,"value":1397},{"type":50,"tag":168,"props":2384,"children":2385},{"style":223},[2386],{"type":55,"value":2093},{"type":50,"tag":168,"props":2388,"children":2389},{"style":263},[2390],{"type":55,"value":1407},{"type":50,"tag":168,"props":2392,"children":2393},{"style":223},[2394],{"type":55,"value":1412},{"type":50,"tag":58,"props":2396,"children":2397},{},[2398,2400,2406],{"type":55,"value":2399},"Compare ",{"type":50,"tag":148,"props":2401,"children":2403},{"className":2402},[],[2404],{"type":55,"value":2405},".next\u002F",{"type":55,"value":2407}," output sizes and page-level chunks.",{"type":50,"tag":64,"props":2409,"children":2411},{"id":2410},"performance-profiling",[2412],{"type":55,"value":2413},"Performance Profiling",{"type":50,"tag":545,"props":2415,"children":2417},{"id":2416},"hmr-profiling",[2418],{"type":55,"value":2419},"HMR profiling",{"type":50,"tag":58,"props":2421,"children":2422},{},[2423],{"type":55,"value":2424},"Enable verbose HMR timing in development:",{"type":50,"tag":157,"props":2426,"children":2428},{"className":927,"code":2427,"language":929,"meta":162,"style":162},"NEXT_TURBOPACK_TRACING=1 next dev\n",[2429],{"type":50,"tag":148,"props":2430,"children":2431},{"__ignoreMap":162},[2432],{"type":50,"tag":168,"props":2433,"children":2434},{"class":170,"line":171},[2435,2440,2444,2449,2453],{"type":50,"tag":168,"props":2436,"children":2437},{"style":202},[2438],{"type":55,"value":2439},"NEXT_TURBOPACK_TRACING",{"type":50,"tag":168,"props":2441,"children":2442},{"style":196},[2443],{"type":55,"value":1397},{"type":50,"tag":168,"props":2445,"children":2446},{"style":223},[2447],{"type":55,"value":2448},"1",{"type":50,"tag":168,"props":2450,"children":2451},{"style":263},[2452],{"type":55,"value":1407},{"type":50,"tag":168,"props":2454,"children":2455},{"style":223},[2456],{"type":55,"value":2457}," dev\n",{"type":50,"tag":58,"props":2459,"children":2460},{},[2461,2463,2469,2471,2477,2479,2486],{"type":55,"value":2462},"This writes a ",{"type":50,"tag":148,"props":2464,"children":2466},{"className":2465},[],[2467],{"type":55,"value":2468},"trace.json",{"type":55,"value":2470}," to the project root — open it in ",{"type":50,"tag":148,"props":2472,"children":2474},{"className":2473},[],[2475],{"type":55,"value":2476},"chrome:\u002F\u002Ftracing",{"type":55,"value":2478}," or ",{"type":50,"tag":2115,"props":2480,"children":2483},{"href":2481,"rel":2482},"https:\u002F\u002Fui.perfetto.dev\u002F",[2119],[2484],{"type":55,"value":2485},"Perfetto",{"type":55,"value":2487}," to see module-level timing.",{"type":50,"tag":545,"props":2489,"children":2491},{"id":2490},"build-profiling",[2492],{"type":55,"value":2493},"Build profiling",{"type":50,"tag":58,"props":2495,"children":2496},{},[2497],{"type":55,"value":2498},"Profile production builds:",{"type":50,"tag":157,"props":2500,"children":2502},{"className":927,"code":2501,"language":929,"meta":162,"style":162},"NEXT_TURBOPACK_TRACING=1 next build\n",[2503],{"type":50,"tag":148,"props":2504,"children":2505},{"__ignoreMap":162},[2506],{"type":50,"tag":168,"props":2507,"children":2508},{"class":170,"line":171},[2509,2513,2517,2521,2525],{"type":50,"tag":168,"props":2510,"children":2511},{"style":202},[2512],{"type":55,"value":2439},{"type":50,"tag":168,"props":2514,"children":2515},{"style":196},[2516],{"type":55,"value":1397},{"type":50,"tag":168,"props":2518,"children":2519},{"style":223},[2520],{"type":55,"value":2448},{"type":50,"tag":168,"props":2522,"children":2523},{"style":263},[2524],{"type":55,"value":1407},{"type":50,"tag":168,"props":2526,"children":2527},{"style":223},[2528],{"type":55,"value":1412},{"type":50,"tag":58,"props":2530,"children":2531},{},[2532],{"type":55,"value":2533},"Look for:",{"type":50,"tag":71,"props":2535,"children":2536},{},[2537,2547,2557],{"type":50,"tag":75,"props":2538,"children":2539},{},[2540,2545],{"type":50,"tag":79,"props":2541,"children":2542},{},[2543],{"type":55,"value":2544},"Long-running transforms",{"type":55,"value":2546},": Indicates a slow SWC plugin or heavy PostCSS config",{"type":50,"tag":75,"props":2548,"children":2549},{},[2550,2555],{"type":50,"tag":79,"props":2551,"children":2552},{},[2553],{"type":55,"value":2554},"Large module graphs",{"type":55,"value":2556},": Reduce barrel file re-exports",{"type":50,"tag":75,"props":2558,"children":2559},{},[2560,2565],{"type":50,"tag":79,"props":2561,"children":2562},{},[2563],{"type":55,"value":2564},"Cache misses",{"type":55,"value":2566},": If incremental builds aren't hitting cache, check for files that change every build (e.g., generated timestamps)",{"type":50,"tag":545,"props":2568,"children":2570},{"id":2569},"memory-usage",[2571],{"type":55,"value":2572},"Memory usage",{"type":50,"tag":58,"props":2574,"children":2575},{},[2576],{"type":55,"value":2577},"Turbopack's Rust core manages its own memory. If builds OOM:",{"type":50,"tag":71,"props":2579,"children":2580},{},[2581,2592],{"type":50,"tag":75,"props":2582,"children":2583},{},[2584,2586],{"type":55,"value":2585},"Increase Node.js heap: ",{"type":50,"tag":148,"props":2587,"children":2589},{"className":2588},[],[2590],{"type":55,"value":2591},"NODE_OPTIONS='--max-old-space-size=8192' next build",{"type":50,"tag":75,"props":2593,"children":2594},{},[2595,2597],{"type":55,"value":2596},"Reduce concurrent tasks if running inside Turborepo: ",{"type":50,"tag":148,"props":2598,"children":2600},{"className":2599},[],[2601],{"type":55,"value":2602},"turbo build --concurrency=2",{"type":50,"tag":64,"props":2604,"children":2606},{"id":2605},"turbopack-vs-webpack",[2607],{"type":55,"value":2608},"Turbopack vs Webpack",{"type":50,"tag":1597,"props":2610,"children":2611},{},[2612,2632],{"type":50,"tag":1601,"props":2613,"children":2614},{},[2615],{"type":50,"tag":1605,"props":2616,"children":2617},{},[2618,2623,2627],{"type":50,"tag":1609,"props":2619,"children":2620},{},[2621],{"type":55,"value":2622},"Feature",{"type":50,"tag":1609,"props":2624,"children":2625},{},[2626],{"type":55,"value":56},{"type":50,"tag":1609,"props":2628,"children":2629},{},[2630],{"type":55,"value":2631},"Webpack",{"type":50,"tag":1620,"props":2633,"children":2634},{},[2635,2653,2671,2689,2707,2725,2743,2760,2778],{"type":50,"tag":1605,"props":2636,"children":2637},{},[2638,2643,2648],{"type":50,"tag":1627,"props":2639,"children":2640},{},[2641],{"type":55,"value":2642},"Language",{"type":50,"tag":1627,"props":2644,"children":2645},{},[2646],{"type":55,"value":2647},"Rust",{"type":50,"tag":1627,"props":2649,"children":2650},{},[2651],{"type":55,"value":2652},"JavaScript",{"type":50,"tag":1605,"props":2654,"children":2655},{},[2656,2661,2666],{"type":50,"tag":1627,"props":2657,"children":2658},{},[2659],{"type":55,"value":2660},"HMR speed",{"type":50,"tag":1627,"props":2662,"children":2663},{},[2664],{"type":55,"value":2665},"Constant (O(1))",{"type":50,"tag":1627,"props":2667,"children":2668},{},[2669],{"type":55,"value":2670},"Degrades with app size",{"type":50,"tag":1605,"props":2672,"children":2673},{},[2674,2679,2684],{"type":50,"tag":1627,"props":2675,"children":2676},{},[2677],{"type":55,"value":2678},"RSC support",{"type":50,"tag":1627,"props":2680,"children":2681},{},[2682],{"type":55,"value":2683},"Native",{"type":50,"tag":1627,"props":2685,"children":2686},{},[2687],{"type":55,"value":2688},"Plugin-based",{"type":50,"tag":1605,"props":2690,"children":2691},{},[2692,2697,2702],{"type":50,"tag":1627,"props":2693,"children":2694},{},[2695],{"type":55,"value":2696},"Cold start",{"type":50,"tag":1627,"props":2698,"children":2699},{},[2700],{"type":55,"value":2701},"Fast",{"type":50,"tag":1627,"props":2703,"children":2704},{},[2705],{"type":55,"value":2706},"Slower",{"type":50,"tag":1605,"props":2708,"children":2709},{},[2710,2715,2720],{"type":50,"tag":1627,"props":2711,"children":2712},{},[2713],{"type":55,"value":2714},"Ecosystem",{"type":50,"tag":1627,"props":2716,"children":2717},{},[2718],{"type":55,"value":2719},"Growing",{"type":50,"tag":1627,"props":2721,"children":2722},{},[2723],{"type":55,"value":2724},"Massive (loaders, plugins)",{"type":50,"tag":1605,"props":2726,"children":2727},{},[2728,2733,2738],{"type":50,"tag":1627,"props":2729,"children":2730},{},[2731],{"type":55,"value":2732},"Status in Next.js 16",{"type":50,"tag":1627,"props":2734,"children":2735},{},[2736],{"type":55,"value":2737},"Default",{"type":50,"tag":1627,"props":2739,"children":2740},{},[2741],{"type":55,"value":2742},"Still supported",{"type":50,"tag":1605,"props":2744,"children":2745},{},[2746,2751,2756],{"type":50,"tag":1627,"props":2747,"children":2748},{},[2749],{"type":55,"value":2750},"Tree shaking",{"type":50,"tag":1627,"props":2752,"children":2753},{},[2754],{"type":55,"value":2755},"Module-level",{"type":50,"tag":1627,"props":2757,"children":2758},{},[2759],{"type":55,"value":2755},{"type":50,"tag":1605,"props":2761,"children":2762},{},[2763,2768,2773],{"type":50,"tag":1627,"props":2764,"children":2765},{},[2766],{"type":55,"value":2767},"CSS handling",{"type":50,"tag":1627,"props":2769,"children":2770},{},[2771],{"type":55,"value":2772},"Built-in",{"type":50,"tag":1627,"props":2774,"children":2775},{},[2776],{"type":55,"value":2777},"Requires loaders",{"type":50,"tag":1605,"props":2779,"children":2780},{},[2781,2786,2791],{"type":50,"tag":1627,"props":2782,"children":2783},{},[2784],{"type":55,"value":2785},"Production builds",{"type":50,"tag":1627,"props":2787,"children":2788},{},[2789],{"type":55,"value":2790},"Supported",{"type":50,"tag":1627,"props":2792,"children":2793},{},[2794],{"type":55,"value":2790},{"type":50,"tag":64,"props":2796,"children":2798},{"id":2797},"when-you-might-need-webpack",[2799],{"type":55,"value":2800},"When You Might Need Webpack",{"type":50,"tag":71,"props":2802,"children":2803},{},[2804,2809,2822],{"type":50,"tag":75,"props":2805,"children":2806},{},[2807],{"type":55,"value":2808},"Custom webpack loaders with no Turbopack equivalent",{"type":50,"tag":75,"props":2810,"children":2811},{},[2812,2814,2820],{"type":55,"value":2813},"Complex webpack plugin configurations (e.g., ",{"type":50,"tag":148,"props":2815,"children":2817},{"className":2816},[],[2818],{"type":55,"value":2819},"ModuleFederationPlugin",{"type":55,"value":2821},")",{"type":50,"tag":75,"props":2823,"children":2824},{},[2825,2827,2833],{"type":55,"value":2826},"Specific webpack features not yet in Turbopack (e.g., custom ",{"type":50,"tag":148,"props":2828,"children":2830},{"className":2829},[],[2831],{"type":55,"value":2832},"externals",{"type":55,"value":2834}," functions)",{"type":50,"tag":58,"props":2836,"children":2837},{},[2838],{"type":55,"value":2839},"To use webpack instead:",{"type":50,"tag":157,"props":2841,"children":2843},{"className":159,"code":2842,"language":161,"meta":162,"style":162},"\u002F\u002F next.config.ts\nconst nextConfig: NextConfig = {\n  bundler: 'webpack', \u002F\u002F Opt out of Turbopack\n}\n",[2844],{"type":50,"tag":148,"props":2845,"children":2846},{"__ignoreMap":162},[2847,2854,2881,2913],{"type":50,"tag":168,"props":2848,"children":2849},{"class":170,"line":171},[2850],{"type":50,"tag":168,"props":2851,"children":2852},{"style":175},[2853],{"type":55,"value":178},{"type":50,"tag":168,"props":2855,"children":2856},{"class":170,"line":181},[2857,2861,2865,2869,2873,2877],{"type":50,"tag":168,"props":2858,"children":2859},{"style":247},[2860],{"type":55,"value":250},{"type":50,"tag":168,"props":2862,"children":2863},{"style":202},[2864],{"type":55,"value":255},{"type":50,"tag":168,"props":2866,"children":2867},{"style":196},[2868],{"type":55,"value":260},{"type":50,"tag":168,"props":2870,"children":2871},{"style":263},[2872],{"type":55,"value":205},{"type":50,"tag":168,"props":2874,"children":2875},{"style":196},[2876],{"type":55,"value":270},{"type":50,"tag":168,"props":2878,"children":2879},{"style":196},[2880],{"type":55,"value":275},{"type":50,"tag":168,"props":2882,"children":2883},{"class":170,"line":234},[2884,2888,2892,2896,2900,2904,2908],{"type":50,"tag":168,"props":2885,"children":2886},{"style":282},[2887],{"type":55,"value":2080},{"type":50,"tag":168,"props":2889,"children":2890},{"style":196},[2891],{"type":55,"value":260},{"type":50,"tag":168,"props":2893,"children":2894},{"style":196},[2895],{"type":55,"value":220},{"type":50,"tag":168,"props":2897,"children":2898},{"style":223},[2899],{"type":55,"value":2093},{"type":50,"tag":168,"props":2901,"children":2902},{"style":196},[2903],{"type":55,"value":338},{"type":50,"tag":168,"props":2905,"children":2906},{"style":196},[2907],{"type":55,"value":414},{"type":50,"tag":168,"props":2909,"children":2910},{"style":175},[2911],{"type":55,"value":2912}," \u002F\u002F Opt out of Turbopack\n",{"type":50,"tag":168,"props":2914,"children":2915},{"class":170,"line":36},[2916],{"type":50,"tag":168,"props":2917,"children":2918},{"style":196},[2919],{"type":55,"value":505},{"type":50,"tag":64,"props":2921,"children":2923},{"id":2922},"development-vs-production",[2924],{"type":55,"value":2925},"Development vs Production",{"type":50,"tag":71,"props":2927,"children":2928},{},[2929,2939],{"type":50,"tag":75,"props":2930,"children":2931},{},[2932,2937],{"type":50,"tag":79,"props":2933,"children":2934},{},[2935],{"type":55,"value":2936},"Development",{"type":55,"value":2938},": Turbopack provides instant HMR and fast refresh",{"type":50,"tag":75,"props":2940,"children":2941},{},[2942,2947],{"type":50,"tag":79,"props":2943,"children":2944},{},[2945],{"type":55,"value":2946},"Production",{"type":55,"value":2948},": Turbopack handles the production build (replaces webpack in Next.js 16)",{"type":50,"tag":64,"props":2950,"children":2952},{"id":2951},"common-issues",[2953],{"type":55,"value":2954},"Common Issues",{"type":50,"tag":2138,"props":2956,"children":2957},{},[2958,2968,2991,3015,3025],{"type":50,"tag":75,"props":2959,"children":2960},{},[2961,2966],{"type":50,"tag":79,"props":2962,"children":2963},{},[2964],{"type":55,"value":2965},"Missing loader equivalent",{"type":55,"value":2967},": Some webpack loaders don't have Turbopack equivalents yet. Check Turbopack docs for supported transformations.",{"type":50,"tag":75,"props":2969,"children":2970},{},[2971,2976,2978,2983,2985,2990],{"type":50,"tag":79,"props":2972,"children":2973},{},[2974],{"type":55,"value":2975},"Config migration",{"type":55,"value":2977},": Move ",{"type":50,"tag":148,"props":2979,"children":2981},{"className":2980},[],[2982],{"type":55,"value":153},{"type":55,"value":2984}," to top-level ",{"type":50,"tag":148,"props":2986,"children":2988},{"className":2987},[],[2989],{"type":55,"value":4},{"type":55,"value":1062},{"type":50,"tag":75,"props":2992,"children":2993},{},[2994,2999,3001,3006,3008,3014],{"type":50,"tag":79,"props":2995,"children":2996},{},[2997],{"type":55,"value":2998},"Custom aliases",{"type":55,"value":3000},": Use ",{"type":50,"tag":148,"props":3002,"children":3004},{"className":3003},[],[3005],{"type":55,"value":2215},{"type":55,"value":3007}," instead of ",{"type":50,"tag":148,"props":3009,"children":3011},{"className":3010},[],[3012],{"type":55,"value":3013},"webpack.resolve.alias",{"type":55,"value":739},{"type":50,"tag":75,"props":3016,"children":3017},{},[3018,3023],{"type":50,"tag":79,"props":3019,"children":3020},{},[3021],{"type":55,"value":3022},"CSS ordering changes",{"type":55,"value":3024},": Test visual regressions when migrating — CSS chunk order may differ.",{"type":50,"tag":75,"props":3026,"children":3027},{},[3028,3033,3035,3040],{"type":50,"tag":79,"props":3029,"children":3030},{},[3031],{"type":55,"value":3032},"Environment boundary errors",{"type":55,"value":3034},": Server-only modules imported in client components fail at build time — use ",{"type":50,"tag":148,"props":3036,"children":3038},{"className":3037},[],[3039],{"type":55,"value":2254},{"type":55,"value":3041}," package.",{"type":50,"tag":64,"props":3043,"children":3045},{"id":3044},"official-documentation",[3046],{"type":55,"value":3047},"Official Documentation",{"type":50,"tag":71,"props":3049,"children":3050},{},[3051,3060,3070,3080],{"type":50,"tag":75,"props":3052,"children":3053},{},[3054],{"type":50,"tag":2115,"props":3055,"children":3058},{"href":3056,"rel":3057},"https:\u002F\u002Fturborepo.dev\u002Fpack",[2119],[3059],{"type":55,"value":56},{"type":50,"tag":75,"props":3061,"children":3062},{},[3063],{"type":50,"tag":2115,"props":3064,"children":3067},{"href":3065,"rel":3066},"https:\u002F\u002Fturborepo.dev\u002Fpack\u002Fdocs",[2119],[3068],{"type":55,"value":3069},"Turbopack Documentation",{"type":50,"tag":75,"props":3071,"children":3072},{},[3073],{"type":50,"tag":2115,"props":3074,"children":3077},{"href":3075,"rel":3076},"https:\u002F\u002Fnextjs.org\u002Fdocs\u002Fapp\u002Fapi-reference\u002Fconfig\u002Fnext-config-js\u002Fturbopack",[2119],[3078],{"type":55,"value":3079},"Next.js Turbopack Config",{"type":50,"tag":75,"props":3081,"children":3082},{},[3083],{"type":50,"tag":2115,"props":3084,"children":3087},{"href":3085,"rel":3086},"https:\u002F\u002Fgithub.com\u002Fvercel\u002Fturborepo",[2119],[3088],{"type":55,"value":3089},"GitHub: Turbopack",{"type":50,"tag":3091,"props":3092,"children":3093},"style",{},[3094],{"type":55,"value":3095},"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"items":3097,"total":3215},[3098,3117,3133,3145,3165,3185,3203],{"slug":3099,"name":3099,"fn":3100,"description":3101,"org":3102,"tags":3103,"stars":22,"repoUrl":23,"updatedAt":3116},"accessibility-and-inclusive-visualization","make data visualizations accessible","Make data visualizations accessible and inclusive. Use when the user needs chart or diagram accessibility guidance, text alternatives for complex visuals, color and contrast review, keyboard support, reduced-motion behavior for animation or parallax, or an accessibility QA workflow for exported figures, UML-like diagrams, and dashboards.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3104,3107,3110,3113],{"name":3105,"slug":3106,"type":15},"Accessibility","accessibility",{"name":3108,"slug":3109,"type":15},"Charts","charts",{"name":3111,"slug":3112,"type":15},"Data Visualization","data-visualization",{"name":3114,"slug":3115,"type":15},"Design","design","2026-06-30T19:00:57.102",{"slug":3118,"name":3118,"fn":3119,"description":3120,"org":3121,"tags":3122,"stars":22,"repoUrl":23,"updatedAt":3132},"agent-browser","automate browser interactions for agents","Browser automation CLI for AI agents. Use when the user needs to interact with websites, verify dev server output, test web apps, navigate pages, fill forms, click buttons, take screenshots, extract data, or automate any browser task. Also triggers when a dev server starts so you can verify it visually.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3123,3126,3129],{"name":3124,"slug":3125,"type":15},"Agents","agents",{"name":3127,"slug":3128,"type":15},"Browser Automation","browser-automation",{"name":3130,"slug":3131,"type":15},"Testing","testing","2026-04-06T18:41:03.44016",{"slug":3134,"name":3134,"fn":3135,"description":3136,"org":3137,"tags":3138,"stars":22,"repoUrl":23,"updatedAt":3144},"agent-browser-verify","verify dev server output with automated browser","Automated browser verification for dev servers. Triggers when a dev server starts to run a visual gut-check with agent-browser — verifies the page loads, checks for console errors, validates key UI elements, and reports pass\u002Ffail before continuing.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3139,3140,3143],{"name":3127,"slug":3128,"type":15},{"name":3141,"slug":3142,"type":15},"Local Development","local-development",{"name":3130,"slug":3131,"type":15},"2026-04-06T18:41:17.526867",{"slug":3146,"name":3146,"fn":3147,"description":3148,"org":3149,"tags":3150,"stars":22,"repoUrl":23,"updatedAt":3164},"agents-sdk","build AI agents on Cloudflare Workers","Build AI agents on Cloudflare Workers using the Agents SDK. Load when creating stateful agents, durable workflows, real-time WebSocket apps, scheduled tasks, MCP servers, or chat applications. Covers Agent class, state management, callable RPC, Workflows integration, and React hooks. Biases towards retrieval from Cloudflare docs over pre-trained knowledge.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3151,3152,3155,3158,3161],{"name":3124,"slug":3125,"type":15},{"name":3153,"slug":3154,"type":15},"Cloudflare Workers","cloudflare-workers",{"name":3156,"slug":3157,"type":15},"SDK","sdk",{"name":3159,"slug":3160,"type":15},"Serverless","serverless",{"name":3162,"slug":3163,"type":15},"WebSockets","websockets","2026-04-06T18:39:51.717063",{"slug":3166,"name":3166,"fn":3167,"description":3168,"org":3169,"tags":3170,"stars":22,"repoUrl":23,"updatedAt":3184},"ai-elements","build chat UIs with AI Elements","AI Elements component library guidance — pre-built React components for AI interfaces built on shadcn\u002Fui. Use when building chat UIs, message displays, tool call rendering, streaming responses, reasoning panels, or any AI-native interface with the AI SDK.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3171,3174,3177,3180,3183],{"name":3172,"slug":3173,"type":15},"Frontend","frontend",{"name":3175,"slug":3176,"type":15},"React","react",{"name":3178,"slug":3179,"type":15},"shadcn\u002Fui","shadcn-ui",{"name":3181,"slug":3182,"type":15},"UI Components","ui-components",{"name":17,"slug":18,"type":15},"2026-04-06T18:40:59.619419",{"slug":3186,"name":3186,"fn":3187,"description":3188,"org":3189,"tags":3190,"stars":22,"repoUrl":23,"updatedAt":3202},"ai-gateway","configure Vercel AI Gateway","Vercel AI Gateway expert guidance. Use when configuring model routing, provider failover, cost tracking, or managing multiple AI providers through a unified API.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3191,3194,3197,3200,3201],{"name":3192,"slug":3193,"type":15},"AI Infrastructure","ai-infrastructure",{"name":3195,"slug":3196,"type":15},"Cost Optimization","cost-optimization",{"name":3198,"slug":3199,"type":15},"LLM","llm",{"name":13,"slug":14,"type":15},{"name":17,"slug":18,"type":15},"2026-04-06T18:40:44.377464",{"slug":3204,"name":3204,"fn":3205,"description":3206,"org":3207,"tags":3208,"stars":22,"repoUrl":23,"updatedAt":3214},"ai-generation-persistence","implement persistence patterns for AI generations","AI generation persistence patterns — unique IDs, addressable URLs, database storage, and cost tracking for every LLM generation",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3209,3210,3213],{"name":3195,"slug":3196,"type":15},{"name":3211,"slug":3212,"type":15},"Database","database",{"name":3198,"slug":3199,"type":15},"2026-04-06T18:41:08.513425",600,{"items":3217,"total":3414},[3218,3239,3262,3279,3295,3312,3331,3343,3357,3371,3383,3398],{"slug":3219,"name":3219,"fn":3220,"description":3221,"org":3222,"tags":3223,"stars":3236,"repoUrl":3237,"updatedAt":3238},"prior-auth-packet-builder","build healthcare prior authorization packets","Build a concise prior authorization packet from local case files and payer policy docs.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3224,3227,3230,3233],{"name":3225,"slug":3226,"type":15},"Documents","documents",{"name":3228,"slug":3229,"type":15},"Healthcare","healthcare",{"name":3231,"slug":3232,"type":15},"Insurance","insurance",{"name":3234,"slug":3235,"type":15},"Regulatory Compliance","regulatory-compliance",28169,"https:\u002F\u002Fgithub.com\u002Fopenai\u002Fopenai-agents-python","2026-04-16T05:11:39.180399",{"slug":3240,"name":3240,"fn":3241,"description":3242,"org":3243,"tags":3244,"stars":3259,"repoUrl":3260,"updatedAt":3261},"aspnet-core","build ASP.NET Core web applications","Build, review, refactor, or architect ASP.NET Core web applications using current official guidance for .NET web development. Use when working on Blazor Web Apps, Razor Pages, MVC, Minimal APIs, controller-based Web APIs, SignalR, gRPC, middleware, dependency injection, configuration, authentication, authorization, testing, performance, deployment, or ASP.NET Core upgrades.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3245,3248,3250,3253,3256],{"name":3246,"slug":3247,"type":15},".NET","dotnet",{"name":3249,"slug":3240,"type":15},"ASP.NET Core",{"name":3251,"slug":3252,"type":15},"Blazor","blazor",{"name":3254,"slug":3255,"type":15},"C#","csharp",{"name":3257,"slug":3258,"type":15},"Web Development","web-development",23787,"https:\u002F\u002Fgithub.com\u002Fopenai\u002Fskills","2026-04-12T05:07:02.819491",{"slug":3263,"name":3263,"fn":3264,"description":3265,"org":3266,"tags":3267,"stars":3259,"repoUrl":3260,"updatedAt":3278},"chatgpt-apps","build ChatGPT Apps SDK applications","Build, scaffold, refactor, and troubleshoot ChatGPT Apps SDK applications that combine an MCP server and widget UI. Use when Codex needs to design tools, register UI resources, wire the MCP Apps bridge or ChatGPT compatibility APIs, apply Apps SDK metadata or CSP or domain settings, or produce a docs-aligned project scaffold. Prefer a docs-first workflow by invoking the openai-docs skill or OpenAI developer docs MCP tools before generating code.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3268,3271,3274,3277],{"name":3269,"slug":3270,"type":15},"Apps SDK","apps-sdk",{"name":3272,"slug":3273,"type":15},"ChatGPT","chatgpt",{"name":3275,"slug":3276,"type":15},"MCP","mcp",{"name":9,"slug":8,"type":15},"2026-04-12T05:07:05.468097",{"slug":3280,"name":3280,"fn":3281,"description":3282,"org":3283,"tags":3284,"stars":3259,"repoUrl":3260,"updatedAt":3294},"cli-creator","build CLIs from API docs","Build a composable CLI for Codex from API docs, an OpenAPI spec, existing curl examples, an SDK, a web app, an admin tool, or a local script. Use when the user wants Codex to create a command-line tool that can run from any repo, expose composable read\u002Fwrite commands, return stable JSON, manage auth, and pair with a companion skill.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3285,3288,3291],{"name":3286,"slug":3287,"type":15},"API Development","api-development",{"name":3289,"slug":3290,"type":15},"CLI","cli",{"name":3292,"slug":3293,"type":15},"Codex","codex","2026-04-12T05:07:04.132762",{"slug":3296,"name":3296,"fn":3297,"description":3298,"org":3299,"tags":3300,"stars":3259,"repoUrl":3260,"updatedAt":3311},"cloudflare-deploy","deploy projects to Cloudflare","Deploy applications and infrastructure to Cloudflare using Workers, Pages, and related platform services. Use when the user asks to deploy, host, publish, or set up a project on Cloudflare.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3301,3304,3307,3308],{"name":3302,"slug":3303,"type":15},"Cloudflare","cloudflare",{"name":3305,"slug":3306,"type":15},"Cloudflare Pages","cloudflare-pages",{"name":3153,"slug":3154,"type":15},{"name":3309,"slug":3310,"type":15},"Deployment","deployment","2026-04-12T05:07:14.275118",{"slug":3313,"name":3313,"fn":3314,"description":3315,"org":3316,"tags":3317,"stars":3259,"repoUrl":3260,"updatedAt":3330},"define-goal","define and set measurable project goals","Help the user define a concrete, measurable goal before starting work, especially when they ask to use the goal tool, create a goal, set an objective, clarify success criteria, or turn a fuzzy intention into a quantitative outcome. Use this skill for goal creation and goal refinement only; it does not manage durable snapshots, decision logs, or long-running execution artifacts.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3318,3321,3324,3327],{"name":3319,"slug":3320,"type":15},"Productivity","productivity",{"name":3322,"slug":3323,"type":15},"Project Management","project-management",{"name":3325,"slug":3326,"type":15},"Strategy","strategy",{"name":3328,"slug":3329,"type":15},"Task Management","task-management","2026-05-23T06:17:16.870838",{"slug":3332,"name":3332,"fn":3333,"description":3334,"org":3335,"tags":3336,"stars":3259,"repoUrl":3260,"updatedAt":3342},"figma","translate Figma designs into code","Use the Figma MCP server to fetch design context, screenshots, variables, and assets from Figma, and to translate Figma nodes into production code. Trigger when a task involves Figma URLs, node IDs, design-to-code implementation, or Figma MCP setup and troubleshooting.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3337,3338,3340,3341],{"name":3114,"slug":3115,"type":15},{"name":3339,"slug":3332,"type":15},"Figma",{"name":3172,"slug":3173,"type":15},{"name":3275,"slug":3276,"type":15},"2026-04-12T05:06:47.939943",{"slug":3344,"name":3344,"fn":3345,"description":3346,"org":3347,"tags":3348,"stars":3259,"repoUrl":3260,"updatedAt":3356},"figma-code-connect-components","connect Figma designs to code components","Connects Figma design components to code components using Code Connect mapping tools. Use when user says \"code connect\", \"connect this component to code\", \"map this component\", \"link component to code\", \"create code connect mapping\", or wants to establish mappings between Figma designs and code implementations. For canvas writes via `use_figma`, use `figma-use`.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3349,3350,3353,3354,3355],{"name":3114,"slug":3115,"type":15},{"name":3351,"slug":3352,"type":15},"Design System","design-system",{"name":3339,"slug":3332,"type":15},{"name":3172,"slug":3173,"type":15},{"name":3181,"slug":3182,"type":15},"2026-05-10T05:59:52.971881",{"slug":3358,"name":3358,"fn":3359,"description":3360,"org":3361,"tags":3362,"stars":3259,"repoUrl":3260,"updatedAt":3370},"figma-create-design-system-rules","generate design system rules from Figma","Generates custom design system rules for the user's codebase. Use when user says \"create design system rules\", \"generate rules for my project\", \"set up design rules\", \"customize design system guidelines\", or wants to establish project-specific conventions for Figma-to-code workflows. Requires Figma MCP server connection.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3363,3364,3365,3368,3369],{"name":3114,"slug":3115,"type":15},{"name":3351,"slug":3352,"type":15},{"name":3366,"slug":3367,"type":15},"Documentation","documentation",{"name":3339,"slug":3332,"type":15},{"name":3172,"slug":3173,"type":15},"2026-05-16T06:07:47.821474",{"slug":3372,"name":3372,"fn":3373,"description":3374,"org":3375,"tags":3376,"stars":3259,"repoUrl":3260,"updatedAt":3382},"figma-implement-design","translate Figma designs into application code","Translates Figma designs into production-ready application code with 1:1 visual fidelity. Use when implementing UI code from Figma files, when user mentions \"implement design\", \"generate code\", \"implement component\", provides Figma URLs, or asks to build components matching Figma specs. For Figma canvas writes via `use_figma`, use `figma-use`.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3377,3378,3379,3380,3381],{"name":3114,"slug":3115,"type":15},{"name":3339,"slug":3332,"type":15},{"name":3172,"slug":3173,"type":15},{"name":3181,"slug":3182,"type":15},{"name":3257,"slug":3258,"type":15},"2026-05-16T06:07:40.583615",{"slug":3384,"name":3384,"fn":3385,"description":3386,"org":3387,"tags":3388,"stars":3259,"repoUrl":3260,"updatedAt":3397},"hatch-pet","create animated pets for Codex","Create, repair, validate, visually QA, and package Codex-compatible animated pets and pet spritesheets from character art, generated images, company or prospect brand cues, or visual references. Use when a user wants a lightweight-worker Codex pet workflow, a non-pixel custom pet style, a prospect or company mascot pet, or a full 8x9 animated pet atlas with transparent unused cells, QA contact sheets, and pet.json packaging. This skill composes the installed $imagegen system skill for visual generation and uses bundled scripts for deterministic spritesheet assembly.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3389,3392,3393,3396],{"name":3390,"slug":3391,"type":15},"Animation","animation",{"name":3292,"slug":3293,"type":15},{"name":3394,"slug":3395,"type":15},"Creative","creative",{"name":3114,"slug":3115,"type":15},"2026-05-02T05:31:48.48485",{"slug":3399,"name":3399,"fn":3400,"description":3401,"org":3402,"tags":3403,"stars":3259,"repoUrl":3260,"updatedAt":3413},"imagegen","generate and edit raster images","Generate or edit raster images when the task benefits from AI-created bitmap visuals such as photos, illustrations, textures, sprites, mockups, or transparent-background cutouts. Use when Codex should create a brand-new image, transform an existing image, or derive visual variants from references, and the output should be a bitmap asset rather than repo-native code or vector. Do not use when the task is better handled by editing existing SVG\u002Fvector\u002Fcode-native assets, extending an established icon or logo system, or building the visual directly in HTML\u002FCSS\u002Fcanvas.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3404,3405,3406,3409,3412],{"name":3394,"slug":3395,"type":15},{"name":3114,"slug":3115,"type":15},{"name":3407,"slug":3408,"type":15},"Image Generation","image-generation",{"name":3410,"slug":3411,"type":15},"Images","images",{"name":9,"slug":8,"type":15},"2026-05-15T06:23:24.312127",675]