fix(esbuild-transpiler) exports modules correctrly (#244)

* changeset

* remove changeset
pull/245/head
Yusuke Wada 2023-11-07 12:13:18 +09:00 committed by GitHub
parent 1c7f40b022
commit 007de80662
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 4 deletions

View File

@ -0,0 +1,5 @@
---
'@hono/esbuild-transpiler': patch
---
fix: exports modules correctly

View File

@ -16,16 +16,18 @@
}, },
"exports": { "exports": {
".": { ".": {
"types": "./dist/index.d.ts", "import": "./dist/index.js",
"import": "./dist/index.js" "require": "./dist/index.cjs"
}, },
"./wasm": { "./wasm": {
"types": "./dist/transpilers/wasm.d.ts", "types": "./dist/transpilers/wasm.d.ts",
"import": "./dist/transpilers/wasm.js" "import": "./dist/transpilers/wasm.js",
"require": "./dist/transpilers/wasm.cjs"
}, },
"./node": { "./node": {
"types": "./dist/transpilers/node.d.ts", "types": "./dist/transpilers/node.d.ts",
"import": "./dist/transpilers/node.js" "import": "./dist/transpilers/node.js",
"require": "./dist/transpilers/node.cjs"
} }
}, },
"typesVersions": { "typesVersions": {