Skip to content

Commit

Permalink
Support ES module imports
Browse files Browse the repository at this point in the history
Enables importing like this:

`import * as usearch from 'usearch'`

https://nodejs.org/api/packages.html#conditional-exports
  • Loading branch information
plurch authored Feb 22, 2024
1 parent f38784b commit 2afa873
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@
"exports": {
".": {
"types": "./javascript/types/usearch.d.ts",
"require": "./javascript/usearch.js"
"require": "./javascript/usearch.js",
"import": "./javascript/usearch.js"
},
"./package.json": "./package.json"
},
Expand Down

0 comments on commit 2afa873

Please sign in to comment.