Skip to content

Commit

Permalink
Define top-level "main" and "types" fields in package.json
Browse files Browse the repository at this point in the history
Some of bundler tools like Parcel do not support the "exports" field
yet. This change defines the top-level "main" and "types" fields in
package.json as a fallback.
  • Loading branch information
kateinoigakukun committed Jun 16, 2024
1 parent 377fbeb commit 1869388
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
"bugs": {
"url": "https://github.com/bjorn3/browser_wasi_shim/issues"
},
"main": "dist/index.js",
"types": "dist/index.d.ts",
"exports": {
".": {
"types": "./typings/index.d.ts",
Expand Down

0 comments on commit 1869388

Please sign in to comment.