File tree Expand file tree Collapse file tree 6 files changed +8579
-8231
lines changed
Expand file tree Collapse file tree 6 files changed +8579
-8231
lines changed Original file line number Diff line number Diff line change @@ -14,15 +14,16 @@ const presets = [
1414 ]
1515] ;
1616
17- if ( isProd ) presets . push ( [ "minify" , { builtIns : false } ] ) ;
17+ // Use Webpack's built-in Terser for minification instead of babel-preset-minify
18+ // which has compatibility issues with newer Babel versions
1819
1920module . exports = {
2021 assumptions : {
2122 noDocumentAll : true ,
2223 noClassCalls : true
2324 } ,
2425 comments : false ,
25- plugins : [ "@babel/plugin-proposal -class-properties" ] ,
26+ plugins : [ "@babel/plugin-transform -class-properties" ] ,
2627 presets,
2728 sourceMaps : isProd ? false : "inline"
2829} ;
Original file line number Diff line number Diff line change 1- FROM node:16 AS base
1+ FROM node:22 AS base
22ARG GIT_COMMIT
33ENV GIT_COMMIT=$GIT_COMMIT
44
Original file line number Diff line number Diff line change @@ -2,15 +2,17 @@ import React from "react";
22import "@fontsource/material-icons" ;
33import "@fontsource/roboto" ;
44import "normalize.css/normalize.css" ;
5- import ReactDOM from "react-dom" ;
5+ import { createRoot } from "react-dom/client " ;
66import { BrowserRouter } from "react-router-dom" ;
77import { App } from "./App/App.js" ;
88
9- ReactDOM . render (
9+ const container = document . getElementById ( "root" ) ;
10+ const root = createRoot ( container ) ;
11+
12+ root . render (
1013 < BrowserRouter >
1114 < React . StrictMode >
1215 < App />
1316 </ React . StrictMode >
14- </ BrowserRouter > ,
15- document . getElementById ( "root" )
17+ </ BrowserRouter >
1618) ;
You can’t perform that action at this time.
0 commit comments