File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ const optimizer = () => {
65
65
result . minimizer = undefined ;
66
66
}
67
67
68
- if ( process . env . MODE . startsWith ( "standalone" ) ) {
68
+ if ( process . env . MODE ? .startsWith ( "standalone" ) ) {
69
69
result . runtimeChunk = false ;
70
70
result . splitChunks = { cacheGroups : { default : false } } ;
71
71
}
@@ -84,7 +84,7 @@ module.exports = composePlugins(
84
84
withReact ( { svgr : true } ) ,
85
85
( config ) => {
86
86
// LS entrypoint
87
- if ( ! process . env . MODE . startsWith ( "standalone" ) ) {
87
+ if ( ! process . env . MODE ? .startsWith ( "standalone" ) ) {
88
88
config . entry = {
89
89
main : {
90
90
import : path . resolve ( __dirname , "apps/labelstudio/src/main.tsx" ) ,
@@ -270,7 +270,7 @@ module.exports = composePlugins(
270
270
mode,
271
271
plugins,
272
272
optimization : optimizer ( ) ,
273
- devServer : process . env . MODE . startsWith ( "standalone" )
273
+ devServer : process . env . MODE ? .startsWith ( "standalone" )
274
274
? { }
275
275
: {
276
276
// Port for the Webpack dev server
You can’t perform that action at this time.
0 commit comments