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
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
Validations