refactor: introduce codemirror for CSS editor (#2039)

* refactor: introduce codemirror for CSS editor

* chore: fix formatting
This commit is contained in:
Carlos Valente
2026-03-26 15:25:32 +01:00
committed by GitHub
parent 2331205c93
commit 3a0df0b491
10 changed files with 247 additions and 105 deletions
-11
View File
@@ -4,7 +4,6 @@ import { sentryVitePlugin } from '@sentry/vite-plugin';
import react from '@vitejs/plugin-react';
import { defineConfig } from 'vite';
import { compression } from 'vite-plugin-compression2';
import prismjsPlugin from 'vite-plugin-prismjs-plus';
import svgrPlugin from 'vite-plugin-svgr';
import { ONTIME_VERSION } from './src/ONTIME_VERSION';
@@ -17,11 +16,6 @@ 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',
@@ -54,11 +48,6 @@ export default defineConfig({
algorithm: 'brotliCompress',
exclude: /\.(html)$/, // Ontime cloud: Exclude HTML files from compression so we can change the base property at runtime
}),
prismjsPlugin({
manual: true,
languages: ['css'],
css: true,
}),
],
server: {
port: 3000,