@modern-js/plugin 2.59.0 → 2.60.0
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/dist/esm/index.js +2 -1
- package/package.json +5 -5
package/dist/esm/index.js
CHANGED
@@ -486,6 +486,7 @@ import { _ as _object_spread9 } from "@swc/helpers/_/_object_spread";
|
|
486
486
|
import { _ as _object_spread_props8 } from "@swc/helpers/_/_object_spread_props";
|
487
487
|
|
488
488
|
// src/manager/shared.ts
|
489
|
+
import { _ as _type_of } from "@swc/helpers/_/_type_of";
|
489
490
|
import { pluginDagSort } from "@modern-js/utils/universal/plugin-dag-sort";
|
490
491
|
var checkPlugins = function(plugins) {
|
491
492
|
if (process.env.NODE_ENV !== "production") {
|
@@ -516,7 +517,7 @@ var includePlugin = function(plugins, input) {
|
|
516
517
|
});
|
517
518
|
};
|
518
519
|
var isObject = function(obj) {
|
519
|
-
return obj !== null && typeof obj === "object";
|
520
|
+
return obj !== null && (typeof obj === "undefined" ? "undefined" : _type_of(obj)) === "object";
|
520
521
|
};
|
521
522
|
var hasOwnProperty = function(obj, prop) {
|
522
523
|
return obj.hasOwnProperty(prop);
|
package/package.json
CHANGED
@@ -15,7 +15,7 @@
|
|
15
15
|
"modern",
|
16
16
|
"modern.js"
|
17
17
|
],
|
18
|
-
"version": "2.
|
18
|
+
"version": "2.60.0",
|
19
19
|
"jsnext:source": "./src/index.ts",
|
20
20
|
"types": "./dist/types/index.d.ts",
|
21
21
|
"main": "./dist/cjs/index.js",
|
@@ -32,16 +32,16 @@
|
|
32
32
|
}
|
33
33
|
},
|
34
34
|
"dependencies": {
|
35
|
-
"@swc/helpers": "0.5.
|
36
|
-
"@modern-js/utils": "2.
|
35
|
+
"@swc/helpers": "0.5.13",
|
36
|
+
"@modern-js/utils": "2.60.0"
|
37
37
|
},
|
38
38
|
"devDependencies": {
|
39
39
|
"@types/jest": "^29",
|
40
40
|
"@types/node": "^14",
|
41
41
|
"jest": "^29",
|
42
42
|
"typescript": "^5",
|
43
|
-
"@scripts/
|
44
|
-
"@scripts/
|
43
|
+
"@scripts/jest-config": "2.60.0",
|
44
|
+
"@scripts/build": "2.60.0"
|
45
45
|
},
|
46
46
|
"sideEffects": false,
|
47
47
|
"publishConfig": {
|