We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Currently we only support string type "browser" field in package.json: https://github.com/vuejs/vite/blob/801951e28a92aaf7437647094081825ec308e645/src/node/resolver.ts#L337 . But it can be an object. For example, styled-components.
So technically, "browser" is different from "module" or "main". It should not be treated as "mainField" . In webpack, it belong to a different config.
More context:
browser
module
package.json
The text was updated successfully, but these errors were encountered:
+1, also breaks axios
Sorry, something went wrong.
I am working on this
test: add test for vitejs#294
f4810b4
fix: resolve browser field in package.json
a29da17
Fix: vitejs#294
fix: resolve browser field in package.json (#301)
28d9714
Fix: #294
Successfully merging a pull request may close this issue.
Currently we only support string type "browser" field in package.json: https://github.com/vuejs/vite/blob/801951e28a92aaf7437647094081825ec308e645/src/node/resolver.ts#L337 . But it can be an object. For example, styled-components.
So technically, "browser" is different from "module" or "main". It should not be treated as "mainField" . In webpack, it belong to a different config.
More context:
browser
vsmodule
fields inpackage.json
webpack/webpack#4674 (comment)The text was updated successfully, but these errors were encountered: