refactor: remove compiler in favour of linter

This commit is contained in:
Carlos Valente
2025-06-28 08:11:09 +02:00
committed by Carlos Valente
parent aefa4cbf44
commit 310dde4465
4 changed files with 142 additions and 37 deletions
+1 -10
View File
@@ -10,19 +10,10 @@ import { ONTIME_VERSION } from './src/ONTIME_VERSION';
const sentryAuthToken = process.env.SENTRY_AUTH_TOKEN;
const isDev = process.env.NODE_ENV === 'local' || process.env.NODE_ENV === 'development';
const ReactCompilerConfig = {
runtimeModule: '@/mycache',
target: '18',
};
export default defineConfig({
base: './', // Ontime cloud: we use relative paths to allow them to reference a dynamic base set at runtime
plugins: [
react({
babel: {
plugins: [['babel-plugin-react-compiler', ReactCompilerConfig]],
},
}),
react(),
svgrPlugin(),
!isDev &&
sentryVitePlugin({