-
-
Notifications
You must be signed in to change notification settings - Fork 106
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: support additional queries #513
Conversation
…th output as default export, add tests
…e external snapshot and add more tests
…prove error handling
…stead of just looking at js and css. This updates ?raw imports correctly during dev
… preprocessed, js, css, dependencies and ast
…te path to testDir, which differs between serve and build tests
…es not add full absolute path to generated by comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. For ?raw
with &type
etc, I think we should rename ?raw
to something else as Vite defines it as something that returns a string. Right now it returns an object with code
and map
where they can't be treeshaken if you use code only.
This could be done as another PR though as it's experimental.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mixed exports 🚀
add support for ?raw and ?direct import queries.
fixes #341
raw
direct