-
-
Notifications
You must be signed in to change notification settings - Fork 7.2k
Closed as not planned
Labels
enhancementNew feature or requestNew feature or requestp2-to-be-discussedEnhancement under consideration (priority)Enhancement under consideration (priority)
Description
Clear and concise description of the problem
Currently vite does not support fallback array in "exports" field in package.json, vite does support array type but when first entrypoint is not accessable, an error will show. webpack 5 has already has a implementation in Alternatives.
Suggested solution
add fallback array support
Alternative
No response
Additional context
"exports": {
"default": {
"import": [
"./dist/index.esm.js",
"./src/index.tsx"
],
"require": "./dist/index.umd.js"
}
},
Validations
- Follow our Code of Conduct
- Read the Contributing Guidelines.
- Read the docs.
- Check that there isn't already an issue that request the same feature to avoid creating a duplicate.
filipw01, SalvatorePreviti, iddan and andjsrk
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestp2-to-be-discussedEnhancement under consideration (priority)Enhancement under consideration (priority)
Type
Projects
Status
P2 - 3