use node conditional exports instead of reconfiguring exports for different use cases
This commit is contained in:
parent
1ce504b182
commit
7ff2bded15
79 changed files with 313 additions and 107 deletions
|
@ -24,7 +24,10 @@
|
|||
"type": "module",
|
||||
"module": "dist/index.mjs",
|
||||
"exports": {
|
||||
".": "./dist/index.mjs"
|
||||
".": {
|
||||
"internal": "./src/index.mjs",
|
||||
"default": "./dist/index.mjs"
|
||||
}
|
||||
},
|
||||
"scripts": {
|
||||
"build": "node build.mjs",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue