-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Description
With the change introduced for this issue, #3867, we are now seeing the following error from esbuild:
▲ [WARNING] The condition "default" here will never be used as it comes after both "import" and "require" [package.json]
The package.json
in this case has these conditional exports:
"exports": {
".": {
"node": "./dist/index.js",
"require": "./dist/index.js",
"import": "./dist/index.esm.js",
"default": "./dist/index.esm.js"
},
"./dist/index.css": {
"default": "./dist/index.css"
}
},
According to the NodeJS documentation, it appears default
should always be last, so this warning feels incorrect?
Shinigami92 and Ben0189
Metadata
Metadata
Assignees
Labels
No labels