Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
MrFlashAccount committed Dec 1, 2024
1 parent 1702e81 commit 55656b0
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
1 change: 1 addition & 0 deletions app/gui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@
"@fast-check/vitest": "^0.0.8",
"@modyfi/vite-plugin-yaml": "^1.0.4",
"@playwright/test": "^1.40.0",
"@babel/plugin-syntax-import-attributes": "^7.24.7",
"@react-types/shared": "^3.22.1",
"@storybook/addon-essentials": "^8.4.2",
"@storybook/addon-interactions": "^8.4.2",
Expand Down
10 changes: 6 additions & 4 deletions app/gui/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ import { defineConfig, type Plugin } from 'vite'
import VueDevTools from 'vite-plugin-vue-devtools'
import wasm from 'vite-plugin-wasm'
import tailwindConfig from './tailwind.config'
// @ts-expect-error We don't need to typecheck this file
import reactCompiler from 'babel-plugin-react-compiler'
// @ts-expect-error We don't need to typecheck this file
import syntaxImportAttributes from '@babel/plugin-syntax-import-attributes'

const dynHostnameWsUrl = (port: number) => JSON.stringify(`ws://__HOSTNAME__:${port}`)
const projectManagerUrl = dynHostnameWsUrl(process.env.INTEGRATION_TEST === 'true' ? 30536 : 30535)
Expand Down Expand Up @@ -57,10 +61,8 @@ export default defineConfig({
include: fileURLToPath(new URL('./src/dashboard/**/*.tsx', import.meta.url)),
babel: {
plugins: [
[
'babel-plugin-react-compiler',
{ target: '18', enablePreserveExistingMemoizationGuarantees: true },
],
[syntaxImportAttributes],
[reactCompiler, { target: '18', enablePreserveExistingMemoizationGuarantees: true }],
],
},
}),
Expand Down
3 changes: 3 additions & 0 deletions pnpm-lock.yaml

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

2 changes: 1 addition & 1 deletion vitest.workspace.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export default ['app/gui/vitest.config.ts']
export default ['app/**/vitest.config.ts']

0 comments on commit 55656b0

Please sign in to comment.