@modern-js/router-v5-generator 3.0.0-beta.5 → 3.0.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.
Files changed (2) hide show
  1. package/dist/index.js +13 -6
  2. package/package.json +7 -7
package/dist/index.js CHANGED
@@ -134228,7 +134228,8 @@ var require_constants6 = __commonJS({
134228
134228
  "@modern-js/plugin-testing": "@modern-js/plugin-testing/cli",
134229
134229
  "@modern-js/plugin-storybook": "@modern-js/plugin-storybook/cli",
134230
134230
  "@modern-js/plugin-tailwindcss": "@modern-js/plugin-tailwindcss/cli",
134231
- "@modern-js/plugin-nocode": "@modern-js/plugin-nocode/cli"
134231
+ "@modern-js/plugin-nocode": "@modern-js/plugin-nocode/cli",
134232
+ "@modern-js/plugin-router-legacy": "@modern-js/plugin-router-legacy/cli"
134232
134233
  };
134233
134234
  exports.INTERNAL_MONOREPO_TOOLS_PLUGINS = {
134234
134235
  "@modern-js/monorepo-tools": "@modern-js/monorepo-tools/cli",
@@ -135458,6 +135459,7 @@ var require_chainId2 = __commonJS({
135458
135459
  CSS: "css",
135459
135460
  LESS: "less",
135460
135461
  SASS: "sass",
135462
+ STYLUS: "stylus",
135461
135463
  SVG: "svg",
135462
135464
  PUG: "pug",
135463
135465
  TOML: "toml",
@@ -135492,6 +135494,7 @@ var require_chainId2 = __commonJS({
135492
135494
  CSS: "css",
135493
135495
  SASS: "sass",
135494
135496
  LESS: "less",
135497
+ STYLUS: "stylus",
135495
135498
  URL: "url",
135496
135499
  PUG: "pug",
135497
135500
  FILE: "file",
@@ -135536,7 +135539,7 @@ var require_chainId2 = __commonJS({
135536
135539
  ASSETS_RETRY: "ASSETS_RETRY",
135537
135540
  AUTO_SET_ROOT_SIZE: "auto-set-root-size",
135538
135541
  HTML_ASYNC_CHUNK: "html-async-chunk",
135539
- SwcPolyfillCheckerPlugin: "swc-polyfill-checker-plugin"
135542
+ SWC_POLYFILL_CHECKER: "swc-polyfill-checker-plugin"
135540
135543
  },
135541
135544
  MINIMIZER: {
135542
135545
  JS: "js",
@@ -136135,7 +136138,8 @@ function getModernConfigFile(appDir) {
136135
136138
  // src/locale/zh.ts
136136
136139
  var ZH_LOCALE2 = {
136137
136140
  successJS: `安装插件依赖成功!请添加如下代码至 {configFile} 中:
136138
- import {pluginName} from '{pluginDependence}'
136141
+
136142
+ import {pluginName} from '{pluginDependence}';
136139
136143
 
136140
136144
  module.exports = {
136141
136145
  ...,
@@ -136145,12 +136149,14 @@ module.exports = {
136145
136149
  mode: 'react-router-5',
136146
136150
  },
136147
136151
  },
136148
- plugins: [..., {pluginName}()]
136152
+ plugins: [..., {pluginName}()],
136149
136153
  };
136154
+
136150
136155
  添加完成后,你将在当前项目中使用 React Router v5,请使用 React Router v5 相关 API 并从 '@modern-js/runtime/router-v5' 导入。
136151
136156
  `,
136152
136157
  successTs: `安装插件依赖成功!请添加如下代码至 {configFile} 中:
136153
- import {pluginName} from '{pluginDependence}'
136158
+
136159
+ import {pluginName} from '{pluginDependence}';
136154
136160
 
136155
136161
  export default defineConfig({
136156
136162
  ...,
@@ -136160,8 +136166,9 @@ export default defineConfig({
136160
136166
  mode: 'react-router-5',
136161
136167
  },
136162
136168
  },
136163
- plugins: [..., {pluginName}()]
136169
+ plugins: [..., {pluginName}()],
136164
136170
  });
136171
+
136165
136172
  添加完成后,你将在当前项目中使用 React Router v5,请使用 React Router v5 相关 API 并从 '@modern-js/runtime/router-v5' 导入。
136166
136173
  `
136167
136174
  };
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "modern",
12
12
  "modern.js"
13
13
  ],
14
- "version": "3.0.0-beta.5",
14
+ "version": "3.0.0",
15
15
  "jsnext:source": "./src/index.ts",
16
16
  "main": "./dist/index.js",
17
17
  "files": [
@@ -26,12 +26,12 @@
26
26
  "@types/node": "^14",
27
27
  "jest": "^27",
28
28
  "typescript": "^4",
29
- "@modern-js/generator-utils": "3.0.0-beta.5",
30
- "@modern-js/generator-common": "3.0.0-beta.5",
31
- "@modern-js/plugin-i18n": "2.0.0-beta.6",
32
- "@modern-js/dependence-generator": "3.0.0-beta.5",
33
- "@scripts/jest-config": "2.0.0-beta.6",
34
- "@scripts/build": "2.0.0-beta.6"
29
+ "@modern-js/generator-utils": "3.0.0",
30
+ "@modern-js/plugin-i18n": "2.0.0",
31
+ "@modern-js/dependence-generator": "3.0.0",
32
+ "@modern-js/generator-common": "3.0.0",
33
+ "@scripts/jest-config": "2.0.0",
34
+ "@scripts/build": "2.0.0"
35
35
  },
36
36
  "sideEffects": false,
37
37
  "publishConfig": {