Skip to content

Commit

Permalink
[⚠️] Use vite swc react (#7845)
Browse files Browse the repository at this point in the history
  • Loading branch information
raymondjacobson authored Mar 14, 2024
1 parent 49c0dff commit 09bb489
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 41 deletions.
73 changes: 39 additions & 34 deletions package-lock.json

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

1 change: 1 addition & 0 deletions packages/web/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ env/.env.dev.local
/coverage

# build
.swc
/sourcemaps
/build
/build-development
Expand Down
4 changes: 2 additions & 2 deletions packages/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@
"@electron/notarize": "2.2.0",
"@esbuild-plugins/node-globals-polyfill": "0.2.3",
"@pinata/sdk": "1.1.13",
"@redux-devtools/extension": "^3.2.4",
"@redux-devtools/extension": "3.2.4",
"@testing-library/react": "12.0.0",
"@types/amplitude-js": "8.0.2",
"@types/bn.js": "5.1.0",
Expand All @@ -234,7 +234,7 @@
"@types/react-virtualized": "9.21.21",
"@types/redux-sentry-middleware": "0.2.1",
"@types/resize-observer-browser": "0.1.7",
"@vitejs/plugin-react": "4.1.0",
"@vitejs/plugin-react-swc": "3.5.0",
"abort-controller": "3.0.0",
"armada-cli": "0.4.0",
"assert": "^2.0.0",
Expand Down
7 changes: 2 additions & 5 deletions packages/web/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import path from 'path'

import { NodeGlobalsPolyfillPlugin } from '@esbuild-plugins/node-globals-polyfill'
import react from '@vitejs/plugin-react'
import react from '@vitejs/plugin-react-swc'
import { visualizer } from 'rollup-plugin-visualizer'
import vike from 'vike/plugin'
import { defineConfig, loadEnv } from 'vite'
Expand Down Expand Up @@ -127,10 +127,7 @@ export default defineConfig(async ({ mode }) => {
}
},
react({
jsxImportSource: '@emotion/react',
babel: {
plugins: ['@emotion/babel-plugin']
}
jsxImportSource: '@emotion/react'
}),
...(ssr ? [vike()] : []),
...((analyze
Expand Down

0 comments on commit 09bb489

Please sign in to comment.