Expected Behavior
Successful bundle for packages whose "exports" field in package.json is array like below:
{
"name": "pkg",
"exports": {
".": "./main.js",
"./util": [
{
"import": "./util.mjs"
},
"./util.js"
]
}
}
Actual Behavior
Unable to bundle, output like this:
(!) Plugin node-resolve: Package subpath './util' is not defined by "exports" in /Users/sosukesuzuki/development/rollup-plugin-node-resolve-11-bug-repro/pkg/package.json
(!) Unresolved dependencies
Additional Information
Please see the reproduce repository link. Also this bug was found from prettier/prettier#9804.
If this is my misunderstand, sorry please close this.
@rollup/plugin-node-resolve11.0.02.34.0MacOS Catalinav14.5.0Expected Behavior
Successful bundle for packages whose
"exports"field inpackage.jsonis array like below:Actual Behavior
Unable to bundle, output like this:
Additional Information
Please see the reproduce repository link. Also this bug was found from prettier/prettier#9804.
If this is my misunderstand, sorry please close this.