weboptimizer 4.0.39 → 4.0.40
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 +1 -1
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
|