enso/app/dashboard/vite.test.config.ts
somebody1234 ebf4cd5c1f
Inline modules in app/ide-desktop/ (#10305)
- Remove unnecessary modules
- Remove `ts-plugin-namespace-auto-import` as it was a workaround to use the non-conventional `import *` convention
- Remove `esbuild-plugin-copy-directories` as it is unuse
- Inline modules that are only ever used once
- Inline `project-manager-shim` into `gui2` - it is only used during `gui2`'s dev mode
- Inline `content-config` into `client`
- Flatten `app/ide-desktop/lib/` to `app/ide-desktop/`
- Flatten `app/ide-desktop/lib/dashboard/` to `app/dashboard/`

# Important Notes
- As mentioned above, all remaining modules have been moved up from `app/ide-desktop/lib/` to `app/ide-desktop/`. It's not ideal but I'd rather hold off on moving them anywhere else before we have a consensus on what should go where.
- (That is to say, this may not be the final directory structure - but I figure it's fine to get *something* done so that hopefully the rest of the restructuring is simpler.)
2024-07-17 09:10:42 +00:00

41 lines
839 B
TypeScript

/** @file Configuration for vite. */
import * as vite from 'vite'
import * as appConfig from 'enso-common/src/appConfig'
// =====================
// === Configuration ===
// =====================
appConfig.loadTestEnvironmentVariables()
const CONFIG = (await import('./vite.config')).default
export default vite.mergeConfig(
CONFIG,
vite.defineConfig({
resolve: {
extensions: [
'.mock.mjs',
'.mock.js',
'.mock.mts',
'.mock.ts',
'.mock.jsx',
'.mock.tsx',
'.mock.json',
'.mjs',
'.js',
'.mts',
'.ts',
'.jsx',
'.tsx',
'.json',
],
},
define: {
// eslint-disable-next-line @typescript-eslint/naming-convention
'process.env.IS_IN_PLAYWRIGHT_TEST': JSON.stringify(`${true}`),
},
})
)