@modern-js/plugin 0.0.0-next-20230201182715 → 0.0.0-next-20230202034424
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/CHANGELOG.md
CHANGED
|
@@ -237,8 +237,8 @@ var createAsyncManager = function(hooks, api) {
|
|
|
237
237
|
};
|
|
238
238
|
var createPlugin = function() {
|
|
239
239
|
var setup = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : function() {}, options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
240
|
-
var
|
|
241
|
-
if ((
|
|
240
|
+
var ref;
|
|
241
|
+
if ((ref = options.usePlugins) === null || ref === void 0 ? void 0 : ref.length) {
|
|
242
242
|
options.usePlugins.forEach(function(plugin) {
|
|
243
243
|
usePlugin(createPlugin(plugin.setup, plugin));
|
|
244
244
|
});
|
|
@@ -107,8 +107,8 @@ var createManager = function(hooks, api) {
|
|
|
107
107
|
};
|
|
108
108
|
var createPlugin = function() {
|
|
109
109
|
var setup = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : function() {}, options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
110
|
-
var
|
|
111
|
-
if ((
|
|
110
|
+
var ref;
|
|
111
|
+
if ((ref = options.usePlugins) === null || ref === void 0 ? void 0 : ref.length) {
|
|
112
112
|
options.usePlugins.forEach(function(plugin) {
|
|
113
113
|
usePlugin(createPlugin(plugin.setup, plugin));
|
|
114
114
|
});
|
package/package.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"modern",
|
|
12
12
|
"modern.js"
|
|
13
13
|
],
|
|
14
|
-
"version": "0.0.0-next-
|
|
14
|
+
"version": "0.0.0-next-20230202034424",
|
|
15
15
|
"jsnext:source": "./src/index.ts",
|
|
16
16
|
"types": "./dist/types/index.d.ts",
|
|
17
17
|
"main": "./dist/js/node/index.js",
|
|
@@ -36,8 +36,8 @@
|
|
|
36
36
|
"@types/node": "^14",
|
|
37
37
|
"typescript": "^4",
|
|
38
38
|
"jest": "^27",
|
|
39
|
-
"@scripts/
|
|
40
|
-
"@scripts/
|
|
39
|
+
"@scripts/jest-config": "0.0.0-next-20230202034424",
|
|
40
|
+
"@scripts/build": "0.0.0-next-20230202034424"
|
|
41
41
|
},
|
|
42
42
|
"sideEffects": false,
|
|
43
43
|
"publishConfig": {
|