fix(npm): use original node regex in npm resolution (#17404)

Fixes regex for matching conditional exports in a package.
Updated to the same regex Node.js uses.
This commit is contained in:
Kiryl Dziamura 2023-01-14 00:57:24 +01:00 committed by GitHub
parent b23b4e231c
commit 934ed8e7d1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 9 additions and 2 deletions

View file

@ -0,0 +1,3 @@
export default {
hello: "from foo",
}

View file

@ -15,6 +15,7 @@
"./client/*": {
"types": "./types/src/client/*.d.ts",
"import": "./esm/client/*.js"
}
},
"./*": "./*"
}
}