mirror of
https://github.com/cpvalente/ontime.git
synced 2026-09-01 12:29:10 +00:00
fix: enable cjs interop while we migrate packages (#2034)
This commit is contained in:
@@ -17,6 +17,11 @@ const ReactCompilerConfig = {
|
||||
|
||||
export default defineConfig({
|
||||
base: './', // Ontime cloud: we use relative paths to allow them to reference a dynamic base set at runtime
|
||||
legacy: {
|
||||
// Temporary compatibility for CJS packages affected by Vite 8 interop changes.
|
||||
// ie: react-simple-code-editor
|
||||
inconsistentCjsInterop: true,
|
||||
},
|
||||
define: {
|
||||
// we pass along the NODE_ENV here in case it is a docker build
|
||||
'import.meta.env.IS_DOCKER': process.env.NODE_ENV === 'docker',
|
||||
|
||||
Reference in New Issue
Block a user