Skip to content

Commit

Permalink
Merge pull request #333 from benmccann/patch-1
Browse files Browse the repository at this point in the history
add `module` field to `package.json`
  • Loading branch information
ts-thomas authored Oct 2, 2022
2 parents e74320e + f65225d commit 1298807
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
},
"main": "dist/flexsearch.bundle.js",
"browser": "dist/flexsearch.bundle.js",
"module": "dist/module/index.js",
"preferGlobal": false,
"repository": {
"type": "git",
Expand Down

1 comment on commit 1298807

@justin0mcateer
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't really understand why, but this change/addition seems to prevent Rollup (via Vite) from seeing the types. It complains that there is no type 'Document' exported from the library.

Please sign in to comment.