Load Sucrase only when a JSX/TSX preview is opened, remove the hand-written transform, and leave subjective render evaluation to the reader while retaining structural fence validation.
34 lines
754 B
JSON
34 lines
754 B
JSON
{
|
|
"name": "web",
|
|
"private": true,
|
|
"version": "1.2.0",
|
|
"type": "module",
|
|
"engines": {
|
|
"node": ">=20.19"
|
|
},
|
|
"scripts": {
|
|
"dev": "vite",
|
|
"build": "vite build",
|
|
"lint": "eslint .",
|
|
"test": "node --test src/preview/jsx-transform.test.js",
|
|
"preview": "vite preview"
|
|
},
|
|
"dependencies": {
|
|
"preact": "^10.29.8",
|
|
"react": "^19.2.4",
|
|
"react-dom": "^19.2.4",
|
|
"sucrase": "^3.35.1"
|
|
},
|
|
"devDependencies": {
|
|
"@eslint/js": "^9.39.4",
|
|
"@types/react": "^19.2.14",
|
|
"@types/react-dom": "^19.2.3",
|
|
"@vitejs/plugin-react": "^6.0.1",
|
|
"eslint": "^9.39.4",
|
|
"eslint-plugin-react-hooks": "^7.0.1",
|
|
"eslint-plugin-react-refresh": "^0.5.2",
|
|
"globals": "^17.4.0",
|
|
"vite": "^8.0.4"
|
|
}
|
|
}
|