### Initial checklist - [x] I read the [support docs](https://mdxjs.com/community/support/) - [x] I read the [contributing guide](https://mdxjs.com/community/contribute/) - [x] I agree to follow the [code of conduct](https://github.com/mdx-js/.github/blob/main/code-of-conduct.md) - [x] I searched [issues](https://github.com/search?q=user%3Amdx-js&type=issues) and [discussions](https://github.com/orgs/mdx-js/discussions) and couldn’t find anything (or linked relevant results below) ### Affected package @mdx-js/rollup@3.1.1 ### Steps to reproduce https://github.com/joshpensky/mdx-js-rollup-vite-glob-repro 1. Create a new Vite 7 project with `@mdx-js/rollup@3.1.1` 2. Define your `vite.config.ts` file with the `mdx` plugin 3. Create a few mdx files, then import with a raw query: ``` const docs = import.meta.glob("./docs/*.mdx", { query: "?raw", import: "default", eager: true, }); ``` ### Actual behavior The object values in the returned glob object are function components ### Expected behavior The object values should be the raw strings, which is typical behavior for the `?raw` query param in Vite ### Runtime node@24.11.0 ### Package manager pnpm@10.21.0 ### Operating system macOS Sequoia 15.3.2 ### Build and bundle tools Vite
Initial checklist
Affected package
@mdx-js/[email protected]
Steps to reproduce
https://github.com/joshpensky/mdx-js-rollup-vite-glob-repro
@mdx-js/[email protected]vite.config.tsfile with themdxpluginActual behavior
The object values in the returned glob object are function components
Expected behavior
The object values should be the raw strings, which is typical behavior for the
?rawquery param in ViteRuntime
[email protected]
Package manager
[email protected]
Operating system
macOS Sequoia 15.3.2
Build and bundle tools
Vite