Skip to content

Commit

Permalink
vite dev server use esnext target
Browse files Browse the repository at this point in the history
  • Loading branch information
sphinxrave committed Jun 30, 2024
1 parent e5b500e commit d2457a2
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 46 deletions.
88 changes: 44 additions & 44 deletions packages/react/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions packages/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,8 @@
"@types/react-dom": "^18.3.0",
"@types/react-grid-layout": "^1.3.5",
"@types/sorted-array-functions": "^1.3.3",
"@typescript-eslint/eslint-plugin": "^7.10.0",
"@typescript-eslint/parser": "^7.10.0",
"@typescript-eslint/eslint-plugin": "^7.14.1",
"@typescript-eslint/parser": "^7.14.1",
"@unocss/eslint-config": "^0.60.3",
"@vitejs/plugin-react": "^4.3.1",
"@vitejs/plugin-react-swc": "^3.7.0",
Expand Down
2 changes: 2 additions & 0 deletions packages/react/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,12 @@ export default defineConfig({
port: 9821,
}) as unknown as PluginOption,
react({
/* top part babel is for standard plugin-react, bottom part is for plugin-react-swc. */
// babel: {
// presets: ["jotai/babel/preset"],
// },
plugins: [["@swc-jotai/debug-label", {}]],
devTarget: "esnext", // SWC only.
}),
UnoCSS({ presets: [presetIcons()] }),
yaml() as unknown as PluginOption,
Expand Down

0 comments on commit d2457a2

Please sign in to comment.