@modern-js/entry-generator 3.1.22 → 3.1.23

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.
Files changed (2) hide show
  1. package/dist/index.js +18 -7
  2. package/package.json +7 -7
package/dist/index.js CHANGED
@@ -35121,10 +35121,14 @@ var require_chainId = __commonJS({
35121
35121
  SVG: "svg",
35122
35122
  /** Rule for pug */
35123
35123
  PUG: "pug",
35124
+ /** Rule for Vue */
35125
+ VUE: "vue",
35124
35126
  /** Rule for toml */
35125
35127
  TOML: "toml",
35126
35128
  /** Rule for yaml */
35127
35129
  YAML: "yaml",
35130
+ /** Rule for wasm */
35131
+ WASM: "wasm",
35128
35132
  /** Rule for bff */
35129
35133
  JS_BFF_API: "js-bff-api"
35130
35134
  },
@@ -35151,6 +35155,8 @@ var require_chainId = __commonJS({
35151
35155
  URL: "url",
35152
35156
  /** pug-loader */
35153
35157
  PUG: "pug",
35158
+ /** vue-loader */
35159
+ VUE: "vue",
35154
35160
  /** file-loader */
35155
35161
  FILE: "file",
35156
35162
  /** @svgr/webpack */
@@ -35220,12 +35226,16 @@ var require_chainId = __commonJS({
35220
35226
  BUNDLE_ANALYZER: "bundle-analyze",
35221
35227
  /** BottomTemplatePlugin */
35222
35228
  BOTTOM_TEMPLATE: "bottom-template",
35223
- /** HtmlCrossOriginPlugin */
35224
- HTML_CROSS_ORIGIN: "html-cross-origin",
35229
+ /** HtmlTagsPlugin */
35230
+ HTML_TAGS: "html-tags",
35225
35231
  /** HtmlNoncePlugin */
35226
35232
  HTML_NONCE: "html-nonce",
35233
+ /** HtmlCrossOriginPlugin */
35234
+ HTML_CROSS_ORIGIN: "html-cross-origin",
35227
35235
  /** MiniCssExtractPlugin */
35228
35236
  MINI_CSS_EXTRACT: "mini-css-extract",
35237
+ /** VueLoaderPlugin */
35238
+ VUE_LOADER_PLUGIN: "vue-loader-plugin",
35229
35239
  /** ReactFastRefreshPlugin */
35230
35240
  REACT_FAST_REFRESH: "react-fast-refresh",
35231
35241
  /** ProvidePlugin for node polyfill */
@@ -35239,9 +35249,7 @@ var require_chainId = __commonJS({
35239
35249
  /** HtmlAsyncChunkPlugin */
35240
35250
  HTML_ASYNC_CHUNK: "html-async-chunk",
35241
35251
  /** SWC_POLYFILL_CHECKER */
35242
- SWC_POLYFILL_CHECKER: "swc-polyfill-checker-plugin",
35243
- /** HtmlTagsPlugin */
35244
- HTML_TAGS: "html-tags"
35252
+ SWC_POLYFILL_CHECKER: "swc-polyfill-checker-plugin"
35245
35253
  },
35246
35254
  /** Predefined minimizers */
35247
35255
  MINIMIZER: {
@@ -35898,6 +35906,7 @@ var require_project = __commonJS({
35898
35906
  });
35899
35907
  var _interop_require_default = require_interop_require_default();
35900
35908
  var _path = /* @__PURE__ */ _interop_require_default._(require("path"));
35909
+ var _pkgup = /* @__PURE__ */ _interop_require_default._(require_pkg_up());
35901
35910
  var _commands = require_commands();
35902
35911
  var _compiled = require_compiled();
35903
35912
  var _common = require_common();
@@ -35937,8 +35946,10 @@ var require_project = __commonJS({
35937
35946
  return Boolean(options["web-only"]);
35938
35947
  });
35939
35948
  var isBeyondReact17 = (cwd) => {
35940
- const pkgPath = _path.default.join(cwd, "package.json");
35941
- if (!_compiled.fs.existsSync(pkgPath)) {
35949
+ const pkgPath = _pkgup.default.sync({
35950
+ cwd
35951
+ });
35952
+ if (!pkgPath) {
35942
35953
  return false;
35943
35954
  }
35944
35955
  const pkgInfo = JSON.parse(_compiled.fs.readFileSync(pkgPath, "utf8"));
package/package.json CHANGED
@@ -15,7 +15,7 @@
15
15
  "modern",
16
16
  "modern.js"
17
17
  ],
18
- "version": "3.1.22",
18
+ "version": "3.1.23",
19
19
  "jsnext:source": "./src/index.ts",
20
20
  "main": "./dist/index.js",
21
21
  "files": [
@@ -30,12 +30,12 @@
30
30
  "@types/node": "^14",
31
31
  "jest": "^29",
32
32
  "typescript": "^5",
33
- "@modern-js/generator-common": "3.1.22",
34
- "@modern-js/utils": "2.23.0",
35
- "@modern-js/plugin-i18n": "2.23.0",
36
- "@modern-js/generator-utils": "3.1.22",
37
- "@scripts/build": "2.23.0",
38
- "@scripts/jest-config": "2.23.0"
33
+ "@modern-js/generator-common": "3.1.23",
34
+ "@modern-js/utils": "2.23.1",
35
+ "@modern-js/plugin-i18n": "2.23.1",
36
+ "@modern-js/generator-utils": "3.1.23",
37
+ "@scripts/build": "2.23.1",
38
+ "@scripts/jest-config": "2.23.1"
39
39
  },
40
40
  "sideEffects": false,
41
41
  "publishConfig": {