Skip to content

Commit

Permalink
Merge pull request #398 from danawoodman/patch-1
Browse files Browse the repository at this point in the history
Update docs  for usage with ESM / ES6
  • Loading branch information
ts-thomas committed Jan 6, 2024
2 parents 9e2f218 + 04e533d commit 0921303
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Expand Up @@ -447,12 +447,12 @@ There are 3 types of indexes:

The most of you probably need just one of them according to your scenario.

### ES6 Modules (Browser):
### ESM / ES6 Modules (Browser):

```js
import Index from "./index.js";
import Document from "./document.js";
import WorkerIndex from "./worker/index.js";
import Index from "flexsearch/dist/module";
import Worker from "flexsearch/dist/module/worker";
import Document from "flexsearch/dist/module/document";

const index = new Index(options);
const document = new Document(options);
Expand Down

0 comments on commit 0921303

Please sign in to comment.