@modern-js/plugin-v2 2.63.5 → 2.63.6

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.
@@ -145,7 +145,8 @@ function createPluginManager() {
145
145
  return {
146
146
  getPlugins,
147
147
  addPlugins,
148
- clear
148
+ clear,
149
+ isPluginExists: (name) => plugins.has(name)
149
150
  };
150
151
  }
151
152
  // Annotate the CommonJS export names for ESM import in node:
package/dist/esm/index.js CHANGED
@@ -153,7 +153,10 @@ function createPluginManager() {
153
153
  return {
154
154
  getPlugins,
155
155
  addPlugins,
156
- clear
156
+ clear,
157
+ isPluginExists: function(name) {
158
+ return plugins.has(name);
159
+ }
157
160
  };
158
161
  }
159
162
 
@@ -122,7 +122,8 @@ function createPluginManager() {
122
122
  return {
123
123
  getPlugins,
124
124
  addPlugins,
125
- clear
125
+ clear,
126
+ isPluginExists: (name) => plugins.has(name)
126
127
  };
127
128
  }
128
129
  export {
@@ -42,4 +42,5 @@ export type PluginManager = {
42
42
  getPlugins: () => Plugin[];
43
43
  addPlugins: (plugins: Array<Plugin | Falsy>) => void;
44
44
  clear: () => void;
45
+ isPluginExists: (name: string) => boolean;
45
46
  };
package/package.json CHANGED
@@ -15,7 +15,7 @@
15
15
  "modern",
16
16
  "modern.js"
17
17
  ],
18
- "version": "2.63.5",
18
+ "version": "2.63.6",
19
19
  "jsnext:source": "./src/index.ts",
20
20
  "types": "./dist/types/index.d.ts",
21
21
  "main": "./dist/cjs/index.js",
@@ -61,8 +61,8 @@
61
61
  },
62
62
  "dependencies": {
63
63
  "@swc/helpers": "0.5.13",
64
- "@modern-js/node-bundle-require": "2.63.5",
65
- "@modern-js/utils": "2.63.5"
64
+ "@modern-js/node-bundle-require": "2.63.6",
65
+ "@modern-js/utils": "2.63.6"
66
66
  },
67
67
  "devDependencies": {
68
68
  "@rsbuild/core": "1.1.13",
@@ -70,10 +70,10 @@
70
70
  "@types/node": "^14",
71
71
  "jest": "^29",
72
72
  "typescript": "^5",
73
- "@modern-js/types": "2.63.5",
74
- "@modern-js/uni-builder": "2.63.5",
75
- "@scripts/jest-config": "2.63.5",
76
- "@scripts/build": "2.63.5"
73
+ "@modern-js/types": "2.63.6",
74
+ "@modern-js/uni-builder": "2.63.6",
75
+ "@scripts/build": "2.63.6",
76
+ "@scripts/jest-config": "2.63.6"
77
77
  },
78
78
  "sideEffects": false,
79
79
  "publishConfig": {