-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Open
Labels
🤞 phase/openPost is being triaged manuallyPost is being triaged manually
Description
Initial checklist
- I read the support docs
- I read the contributing guide
- I agree to follow the code of conduct
- I searched issues and discussions and couldn’t find anything (or linked relevant results below)
Affected package
@mdx-js/[email protected]
Steps to reproduce
https://github.com/joshpensky/mdx-js-rollup-vite-glob-repro
- Create a new Vite 7 project with
@mdx-js/[email protected] - Define your
vite.config.tsfile with themdxplugin - 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
Package manager
Operating system
macOS Sequoia 15.3.2
Build and bundle tools
Vite
Metadata
Metadata
Assignees
Labels
🤞 phase/openPost is being triaged manuallyPost is being triaged manually