diff --git a/.changepacks/changepack_log_bun_runtime_commonjs.json b/.changepacks/changepack_log_bun_runtime_commonjs.json new file mode 100644 index 000000000..554c25574 --- /dev/null +++ b/.changepacks/changepack_log_bun_runtime_commonjs.json @@ -0,0 +1,7 @@ +{ + "changes": { + "packages/bun-plugin/package.json": "Patch" + }, + "note": "Compile every source kind under the Bun runtime: `.mts`, `.cts`, and `.js` and `.cjs` files outside `node_modules` join `.ts`, `.tsx`, `.jsx` and `.mjs`. CommonJS keeps its exports: Bun does not run CommonJS an `onLoad` callback returns, so the runtime plugin runs the module itself and hands Bun an ES module exporting its `module.exports` to `require()` and `import`. Source loads are synchronous, so `require()` works on compiled files too.", + "date": "2026-11-17T00:00:00.000Z" +} diff --git a/apps/landing/src/app/(detail)/docs/limitations/page.mdx b/apps/landing/src/app/(detail)/docs/limitations/page.mdx index 35ceefa35..94c78ccfc 100644 --- a/apps/landing/src/app/(detail)/docs/limitations/page.mdx +++ b/apps/landing/src/app/(detail)/docs/limitations/page.mdx @@ -101,7 +101,7 @@ A dynamic value such as `width` becomes a CSS variable set in `style`, so a comp - An `.mdx` file is extracted after your MDX plugin compiles it to JavaScript, never as raw MDX. The Vite (`@mdx-js/rollup`), webpack and Rsbuild (`@mdx-js/loader`, `@rsbuild/plugin-mdx`) plugins and Next.js with webpack (`@next/mdx`) run their MDX step in a later phase: Vite in a `post` transform, webpack and Rsbuild in a `post` loader. Next.js with Turbopack and the Bun plugin do not extract MDX yet. The scan that reserves class names before a build reads JavaScript and TypeScript modules only, so a document's own classes are named when it compiles. Put components that need Devup UI styles in a `.tsx` module and use them from the document. - The plugins read `jsxImportSource` from the `tsconfig.json` (or `jsconfig.json`) in the working directory. Opt out with `importAliases: { '@emotion/react/jsx-runtime': false }`. - The outermost `ThemeProvider` also declares its theme on `:root`, in a `