2024-01-31 14:35:41 +03:00
|
|
|
/** @file Configuration for vite. */
|
|
|
|
import * as vite from 'vite'
|
|
|
|
|
2024-04-29 10:27:00 +03:00
|
|
|
import * as appConfig from 'enso-common/src/appConfig'
|
2024-01-31 14:35:41 +03:00
|
|
|
|
|
|
|
// =====================
|
|
|
|
// === Configuration ===
|
|
|
|
// =====================
|
|
|
|
|
|
|
|
/* eslint-disable @typescript-eslint/naming-convention */
|
|
|
|
|
2024-04-29 10:27:00 +03:00
|
|
|
appConfig.loadTestEnvironmentVariables()
|
|
|
|
|
|
|
|
const CONFIG = (await import('./vite.config')).default
|
2024-03-08 06:14:26 +03:00
|
|
|
|
2024-01-31 14:35:41 +03:00
|
|
|
export default vite.mergeConfig(
|
2024-04-29 10:27:00 +03:00
|
|
|
CONFIG,
|
2024-01-31 14:35:41 +03:00
|
|
|
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',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
})
|
|
|
|
)
|