weboptimizer 4.0.39 → 4.0.41
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/helper.js +5 -1
- package/package.json +5 -5
package/helper.js
CHANGED
|
@@ -605,7 +605,11 @@ export const getClosestPackageDescriptor = async (modulePath, fileName = 'packag
|
|
|
605
605
|
into a module namespace object providing its content as "default"
|
|
606
606
|
export whereas commonjs interoperability provides it directly.
|
|
607
607
|
*/
|
|
608
|
-
const importedModule = await import(filePath
|
|
608
|
+
const importedModule = await import(filePath, {
|
|
609
|
+
with: {
|
|
610
|
+
type: 'json'
|
|
611
|
+
}
|
|
612
|
+
});
|
|
609
613
|
const configuration = importedModule.default ?? importedModule;
|
|
610
614
|
/*
|
|
611
615
|
If the package.json does not have a name property, try again from
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "weboptimizer",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.41",
|
|
4
4
|
"description": "A generic web optimizer, (module) bundler and development environment.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"webpack",
|
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
"babel-loader": "^10.1.1",
|
|
95
95
|
"babel-plugin-polyfill-corejs3": "^1.0.0",
|
|
96
96
|
"babel-plugin-transform-rewrite-imports": "^1.5.4",
|
|
97
|
-
"clientnode": "4.0.
|
|
97
|
+
"clientnode": "4.0.1473",
|
|
98
98
|
"core-js": "^3.49.0",
|
|
99
99
|
"ejs": "^6.0.1",
|
|
100
100
|
"exports-loader": "^5.0.0",
|
|
@@ -135,7 +135,7 @@
|
|
|
135
135
|
"eslint-plugin-jsdoc": "^63.3.0",
|
|
136
136
|
"favicons": "^7.3.1",
|
|
137
137
|
"favicons-webpack-plugin": "^6.0.1",
|
|
138
|
-
"globals": "^17.
|
|
138
|
+
"globals": "^17.8.0",
|
|
139
139
|
"image-minimizer-webpack-plugin": "^5.0.0",
|
|
140
140
|
"jest": "^30.4.2",
|
|
141
141
|
"jsdoc": "^4.0.5",
|
|
@@ -157,7 +157,7 @@
|
|
|
157
157
|
"terser-webpack-plugin": "^5.6.1",
|
|
158
158
|
"typescript-eslint": "^8.65.0",
|
|
159
159
|
"typescript-plugin-css-modules": "^5.2.0",
|
|
160
|
-
"web-documentation": "^1.0.
|
|
160
|
+
"web-documentation": "^1.0.43",
|
|
161
161
|
"workbox-webpack-plugin": "^7.4.1"
|
|
162
162
|
},
|
|
163
163
|
"peerDependencies": {
|
|
@@ -348,7 +348,7 @@
|
|
|
348
348
|
},
|
|
349
349
|
"includeFilePathRegularExpression": "^.*$",
|
|
350
350
|
"pattern": {
|
|
351
|
-
"__evaluate__": "`if(typeof window==='undefined'||window===null)var window=(typeof
|
|
351
|
+
"__evaluate__": "`if(typeof window==='undefined'||window===null)var window=(typeof globalThis==='undefined'||globalThis===null)?{}:globalThis;{1}`"
|
|
352
352
|
}
|
|
353
353
|
}
|
|
354
354
|
},
|