File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change 1- const { instantMeiliSearch } = require ( '@meilisearch/instant-meilisearch' )
2- const { MeiliSearch } = require ( 'meilisearch' )
3-
1+ import { instantMeiliSearch } from '@meilisearch/instant-meilisearch/dist/instant-meilisearch.esm.min.js'
2+ import { MeiliSearch } from 'meilisearch'
43
54const { searchClient } = instantMeiliSearch ( 'http://localhost:7700' , 'masterKey' , { } )
65const msClient = new MeiliSearch ( { host : 'http://localhost:7700' , apiKey : 'masterKey' } )
Original file line number Diff line number Diff line change 33 "version" : " 0.0.0" ,
44 "private" : true ,
55 "description" : " Instant-meilisearch playground written in node" ,
6- "main" : " index.js " ,
6+ "main" : " index.mjs " ,
77 "scripts" : {
8- "dev" : " node index.js "
8+ "dev" : " node index.mjs "
99 },
1010 "devDependencies" : {
1111 "eslint-config-meilisearch" : " *"
You can’t perform that action at this time.
0 commit comments