-
-
Notifications
You must be signed in to change notification settings - Fork 135
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
Feature request: Read whole module if there is no default export #308
Comments
I don't see why it should load a non-default export from the file. Do you have any actual use case for this? I'm pretty sure that vite does not use cosmiconfig. |
for convenient and fast, in some times we should defined it use |
That's a feature request then, not a bug. |
ESM
support
when this feature will be plan? :) |
Hey @tianyingchun :), every open source project accepts a PR with the needed feature/bug ;) |
:) ok, i make time to make PR 💯 |
We use |
#283 (comment)
return (await import(href)).default; always return undefined for project if we have an
named exports
atxxx.config.js
consider below example
valid.config.js
import { defineConfig } from 'vite';
// it is
esm
module causeof type:module
export const test = defineConfig({
cake: 'a lie',
});
it will aways return me undefined.
maybe it should be
The text was updated successfully, but these errors were encountered: