@modern-js/router-v5-generator 3.0.0-beta.5 → 3.0.0-beta.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.
- package/dist/index.js +10 -4
- package/package.json +7 -7
package/dist/index.js
CHANGED
|
@@ -135458,6 +135458,7 @@ var require_chainId2 = __commonJS({
|
|
|
135458
135458
|
CSS: "css",
|
|
135459
135459
|
LESS: "less",
|
|
135460
135460
|
SASS: "sass",
|
|
135461
|
+
STYLUS: "stylus",
|
|
135461
135462
|
SVG: "svg",
|
|
135462
135463
|
PUG: "pug",
|
|
135463
135464
|
TOML: "toml",
|
|
@@ -135492,6 +135493,7 @@ var require_chainId2 = __commonJS({
|
|
|
135492
135493
|
CSS: "css",
|
|
135493
135494
|
SASS: "sass",
|
|
135494
135495
|
LESS: "less",
|
|
135496
|
+
STYLUS: "stylus",
|
|
135495
135497
|
URL: "url",
|
|
135496
135498
|
PUG: "pug",
|
|
135497
135499
|
FILE: "file",
|
|
@@ -136135,7 +136137,8 @@ function getModernConfigFile(appDir) {
|
|
|
136135
136137
|
// src/locale/zh.ts
|
|
136136
136138
|
var ZH_LOCALE2 = {
|
|
136137
136139
|
successJS: `安装插件依赖成功!请添加如下代码至 {configFile} 中:
|
|
136138
|
-
|
|
136140
|
+
|
|
136141
|
+
import {pluginName} from '{pluginDependence}';
|
|
136139
136142
|
|
|
136140
136143
|
module.exports = {
|
|
136141
136144
|
...,
|
|
@@ -136145,12 +136148,14 @@ module.exports = {
|
|
|
136145
136148
|
mode: 'react-router-5',
|
|
136146
136149
|
},
|
|
136147
136150
|
},
|
|
136148
|
-
plugins: [..., {pluginName}()]
|
|
136151
|
+
plugins: [..., {pluginName}()],
|
|
136149
136152
|
};
|
|
136153
|
+
|
|
136150
136154
|
添加完成后,你将在当前项目中使用 React Router v5,请使用 React Router v5 相关 API 并从 '@modern-js/runtime/router-v5' 导入。
|
|
136151
136155
|
`,
|
|
136152
136156
|
successTs: `安装插件依赖成功!请添加如下代码至 {configFile} 中:
|
|
136153
|
-
|
|
136157
|
+
|
|
136158
|
+
import {pluginName} from '{pluginDependence}';
|
|
136154
136159
|
|
|
136155
136160
|
export default defineConfig({
|
|
136156
136161
|
...,
|
|
@@ -136160,8 +136165,9 @@ export default defineConfig({
|
|
|
136160
136165
|
mode: 'react-router-5',
|
|
136161
136166
|
},
|
|
136162
136167
|
},
|
|
136163
|
-
plugins: [..., {pluginName}()]
|
|
136168
|
+
plugins: [..., {pluginName}()],
|
|
136164
136169
|
});
|
|
136170
|
+
|
|
136165
136171
|
添加完成后,你将在当前项目中使用 React Router v5,请使用 React Router v5 相关 API 并从 '@modern-js/runtime/router-v5' 导入。
|
|
136166
136172
|
`
|
|
136167
136173
|
};
|
package/package.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"modern",
|
|
12
12
|
"modern.js"
|
|
13
13
|
],
|
|
14
|
-
"version": "3.0.0-beta.
|
|
14
|
+
"version": "3.0.0-beta.6",
|
|
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/
|
|
30
|
-
"@modern-js/generator-common": "3.0.0-beta.
|
|
31
|
-
"@modern-js/
|
|
32
|
-
"@modern-js/dependence-generator": "3.0.0-beta.
|
|
33
|
-
"@scripts/
|
|
34
|
-
"@scripts/
|
|
29
|
+
"@modern-js/plugin-i18n": "2.0.0-beta.7",
|
|
30
|
+
"@modern-js/generator-common": "3.0.0-beta.6",
|
|
31
|
+
"@modern-js/generator-utils": "3.0.0-beta.6",
|
|
32
|
+
"@modern-js/dependence-generator": "3.0.0-beta.6",
|
|
33
|
+
"@scripts/build": "2.0.0-beta.7",
|
|
34
|
+
"@scripts/jest-config": "2.0.0-beta.7"
|
|
35
35
|
},
|
|
36
36
|
"sideEffects": false,
|
|
37
37
|
"publishConfig": {
|