@modern-js/mwa-generator 2.1.0 → 2.1.1

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/index.js CHANGED
@@ -130108,6 +130108,7 @@ var require_constants6 = __commonJSMin((exports) => {
130108
130108
  cli: "@modern-js/plugin-nest/cli",
130109
130109
  server: "@modern-js/plugin-nest/server"
130110
130110
  },
130111
+ "@modern-js/plugin-unbundle": { cli: "@modern-js/plugin-unbundle" },
130111
130112
  "@modern-js/plugin-server": {
130112
130113
  cli: "@modern-js/plugin-server/cli",
130113
130114
  server: "@modern-js/plugin-server/server"
@@ -130130,10 +130131,7 @@ var require_constants6 = __commonJSMin((exports) => {
130130
130131
  "@modern-js/plugin-multiprocess": {
130131
130132
  cli: "@modern-js/plugin-multiprocess/cli"
130132
130133
  },
130133
- "@modern-js/plugin-nocode": { cli: "@modern-js/plugin-nocode/cli" },
130134
- "@modern-js/plugin-design-token": {
130135
- cli: "@modern-js/plugin-design-token/cli"
130136
- }
130134
+ "@modern-js/plugin-nocode": { cli: "@modern-js/plugin-nocode/cli" }
130137
130135
  };
130138
130136
  exports.PLUGIN_SCHEMAS = {
130139
130137
  "@modern-js/runtime": [
@@ -130200,6 +130198,27 @@ var require_constants6 = __commonJSMin((exports) => {
130200
130198
  schema: { typeof: ["string", "object"] }
130201
130199
  }
130202
130200
  ],
130201
+ "@modern-js/plugin-unbundle": [
130202
+ {
130203
+ target: "output.disableAutoImportStyle",
130204
+ schema: { type: "boolean" }
130205
+ },
130206
+ {
130207
+ target: "dev.unbundle",
130208
+ schema: {
130209
+ type: "object",
130210
+ properties: {
130211
+ ignore: {
130212
+ type: ["string", "array"],
130213
+ items: { type: "string" }
130214
+ },
130215
+ ignoreModuleCache: { type: "boolean" },
130216
+ clearPdnCache: { type: "boolean" },
130217
+ pdnHost: { type: "string" }
130218
+ }
130219
+ }
130220
+ }
130221
+ ],
130203
130222
  "@modern-js/plugin-ssg": [
130204
130223
  {
130205
130224
  target: "output.ssg",
@@ -131115,7 +131134,11 @@ var require_chainId2 = __commonJSMin((exports) => {
131115
131134
  exports.CHAIN_ID = {
131116
131135
  RULE: {
131117
131136
  MJS: "mjs",
131118
- LOADERS: "loaders"
131137
+ LOADERS: "loaders",
131138
+ FONT: "font",
131139
+ IMAGE: "image",
131140
+ JS: "js",
131141
+ TS: "ts"
131119
131142
  },
131120
131143
  ONE_OF: {
131121
131144
  JS: "js",
@@ -131907,7 +131930,7 @@ var PackageManagerSchema = {
131907
131930
  },
131908
131931
  mutualExclusion: true,
131909
131932
  when: function when(_values, extra) {
131910
- return !(extra !== null && extra !== void 0 && extra.isMonorepoSubProject);
131933
+ return !(extra !== null && extra !== void 0 && extra.isMonorepoSubProject) && !(extra !== null && extra !== void 0 && extra.isSubProject);
131911
131934
  },
131912
131935
  items: Object.values(PackageManager).map(function(packageManager) {
131913
131936
  return {
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "modern",
12
12
  "modern.js"
13
13
  ],
14
- "version": "2.1.0",
14
+ "version": "2.1.1",
15
15
  "jsnext:source": "./src/index.ts",
16
16
  "main": "./dist/index.js",
17
17
  "files": [
@@ -27,7 +27,7 @@
27
27
  "@modern-js/entry-generator": "1.5.0",
28
28
  "@modern-js/electron-generator": "1.4.0",
29
29
  "@modern-js/dependence-generator": "1.4.0",
30
- "@modern-js/generator-common": "1.6.0",
30
+ "@modern-js/generator-common": "1.6.1",
31
31
  "@modern-js/generator-utils": "1.4.0",
32
32
  "@modern-js/plugin-i18n": "1.3.0",
33
33
  "@types/jest": "^27",
@@ -1,2 +1,2 @@
1
1
  /// <reference types='@modern-js/app-tools/types' />
2
-
2
+ /// <reference types='@modern-js/runtime/types' />