mirror of
https://github.com/enso-org/enso.git
synced 2024-12-01 04:44:15 +03:00
d58b5f2a7d
- Fix #9479 # Important Notes None
39 lines
736 B
TypeScript
39 lines
736 B
TypeScript
/** @file Configuration for vite. */
|
|
import * as vite from 'vite'
|
|
|
|
import * as appConfig from 'enso-common/src/appConfig'
|
|
|
|
// =====================
|
|
// === Configuration ===
|
|
// =====================
|
|
|
|
/* eslint-disable @typescript-eslint/naming-convention */
|
|
|
|
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',
|
|
],
|
|
},
|
|
})
|
|
)
|