Skip to content

Commit 6782bd1

Browse files
committed
Update local react playground
1 parent a3f5410 commit 6782bd1

File tree

3 files changed

+7
-10
lines changed

3 files changed

+7
-10
lines changed
File renamed without changes.

playgrounds/local-react/package.json

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,11 @@
33
"version": "0.0.0",
44
"private": true,
55
"description": "React playground for instant-meilisearch",
6+
"type": "module",
67
"scripts": {
78
"predev": "node setup.js",
8-
"dev": "parcel serve index.html --open --port 9999",
9-
"build": "parcel build index.html",
9+
"dev": "vite",
10+
"build": "vite build",
1011
"setup": "node setup.js",
1112
"lint": "eslint --ext .jsx,.js .",
1213
"lint:fix": "eslint --ext .jsx,.js --fix .",
@@ -31,10 +32,7 @@
3132
"react-router-dom": "^6.14.2"
3233
},
3334
"devDependencies": {
34-
"@babel/core": "^7.20.5",
35-
"@babel/plugin-syntax-jsx": "^7.22.5",
36-
"@babel/plugin-transform-runtime": "^7.22.5",
37-
"@babel/preset-react": "^7.22.5",
35+
"vite": "^6.0.5",
3836
"cypress": "^8.6.0",
3937
"eslint-config-meilisearch": "*"
4038
}

playgrounds/local-react/setup.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
const { MeiliSearch } = require('meilisearch')
2-
const movies = require('./assets/movies.json')
3-
const games = require('./assets/games.json')
4-
1+
import { MeiliSearch } from 'meilisearch'
2+
import movies from './assets/movies.json' with { type: 'json' }
3+
import games from './assets/games.json' with { type: 'json' }
54
;(async () => {
65
const client = new MeiliSearch({
76
host: 'http://127.0.0.1:7700',

0 commit comments

Comments
 (0)