File tree 2 files changed +6
-4
lines changed
2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ const {
50
50
BanBackendImportsPlugin,
51
51
CopyBentleyStaticResourcesPlugin,
52
52
CopyStaticAssetsPlugin,
53
- IModeljsLibraryExportsPlugin
53
+ IModeljsLibraryExportsPlugin,
54
54
} = require ( '@bentley/webpack-tools-core' ) ;
55
55
56
56
// iModel.js change to support using the fast-sass-loader instead of sass-loader.
@@ -137,7 +137,9 @@ module.exports = function (webpackEnv) {
137
137
const shouldUseReactRefresh = env . raw . FAST_REFRESH ;
138
138
139
139
if ( env . raw . IMJS_URL_PREFIX === undefined ) {
140
- env . stringified [ "process.env" ] . IMJS_URL_PREFIX = `(globalThis.IMJS_URL_PREFIX ?? "")` ;
140
+ env . stringified [
141
+ 'process.env'
142
+ ] . IMJS_URL_PREFIX = `(globalThis.IMJS_URL_PREFIX ? globalThis.IMJS_URL_PREFIX : "")` ;
141
143
}
142
144
143
145
// common function to get style loaders
@@ -479,7 +481,7 @@ module.exports = function (webpackEnv) {
479
481
rules : [
480
482
// Disable require.ensure as it's not a standard language feature.
481
483
// Add support for magic comments in commonjs modules (i.e. webpackIgnore for dynamic imports)
482
- { parser : { requireEnsure : false , commonjsMagicComments : true } } ,
484
+ { parser : { requireEnsure : false , commonjsMagicComments : true } } ,
483
485
{
484
486
// iModel.js Changes
485
487
// always use source-map-loader and use strip-assert-loader on production builds;
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @bentley/react-scripts" ,
3
- "version" : " 4.0.6 " ,
3
+ "version" : " 4.0.7 " ,
4
4
"description" : " iModel.js configuration and scripts for Create React App." ,
5
5
"repository" : {
6
6
"type" : " git" ,
You can’t perform that action at this time.
0 commit comments