Skip to content

Commit d836195

Browse files
committed
Fix Node.js env
1 parent 0657bf7 commit d836195

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

playgrounds/node-env/index.js renamed to playgrounds/node-env/index.mjs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
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

54
const { searchClient } = instantMeiliSearch('http://localhost:7700', 'masterKey', {})
65
const msClient = new MeiliSearch({ host: 'http://localhost:7700', apiKey: 'masterKey'})

playgrounds/node-env/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
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": "*"

0 commit comments

Comments
 (0)