@modern-js/ssg-generator 3.2.11 → 3.3.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.
- package/dist/index.js +15 -27
- package/package.json +8 -8
package/dist/index.js
CHANGED
@@ -61742,6 +61742,15 @@ var AppAPI = class {
|
|
61742
61742
|
var import_path5 = __toESM(require("path"));
|
61743
61743
|
var import_utils16 = require("@modern-js/utils");
|
61744
61744
|
|
61745
|
+
// ../../../../node_modules/.pnpm/@swc+helpers@0.5.3/node_modules/@swc/helpers/esm/_define_property.js
|
61746
|
+
function _define_property2(obj, key, value) {
|
61747
|
+
if (key in obj) {
|
61748
|
+
Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true });
|
61749
|
+
} else
|
61750
|
+
obj[key] = value;
|
61751
|
+
return obj;
|
61752
|
+
}
|
61753
|
+
|
61745
61754
|
// ../../../cli/plugin-i18n/dist/esm-node/index.js
|
61746
61755
|
var import_lodash7 = require("@modern-js/utils/lodash");
|
61747
61756
|
|
@@ -61800,8 +61809,8 @@ var I18n2 = class {
|
|
61800
61809
|
};
|
61801
61810
|
}
|
61802
61811
|
constructor() {
|
61803
|
-
|
61804
|
-
|
61812
|
+
_define_property2(this, "language", "en");
|
61813
|
+
_define_property2(this, "languageMap", {});
|
61805
61814
|
}
|
61806
61815
|
};
|
61807
61816
|
|
@@ -61842,7 +61851,8 @@ var ZH_LOCALE2 = {
|
|
61842
61851
|
polyfill: "启用「基于 UA 的 Polyfill」功能",
|
61843
61852
|
proxy: "启用「全局代理」",
|
61844
61853
|
swc: "启用「SWC 编译」",
|
61845
|
-
rspack: "启用「Rspack 构建」(实验性)"
|
61854
|
+
rspack: "启用「Rspack 构建」(实验性)",
|
61855
|
+
module_doc: "启动「模块文档」功能"
|
61846
61856
|
},
|
61847
61857
|
element: {
|
61848
61858
|
self: "创建工程元素",
|
@@ -61940,7 +61950,8 @@ var EN_LOCALE2 = {
|
|
61940
61950
|
polyfill: "Enable UA-based Polyfill Feature",
|
61941
61951
|
proxy: "Enable Global Proxy",
|
61942
61952
|
swc: "Enable SWC Compile",
|
61943
|
-
rspack: "Enable Rspack Build (experimental)"
|
61953
|
+
rspack: "Enable Rspack Build (experimental)",
|
61954
|
+
module_doc: "Enable Module Doc"
|
61944
61955
|
},
|
61945
61956
|
element: {
|
61946
61957
|
self: "Create Element",
|
@@ -62019,29 +62030,6 @@ var SubSolution;
|
|
62019
62030
|
SubSolution2["MWA"] = "mwa";
|
62020
62031
|
SubSolution2["Module"] = "module";
|
62021
62032
|
})(SubSolution || (SubSolution = {}));
|
62022
|
-
var SolutionText = {
|
62023
|
-
[Solution.MWA]: () => i18n2.t(localeKeys2.solution.mwa),
|
62024
|
-
[Solution.Module]: () => i18n2.t(localeKeys2.solution.module),
|
62025
|
-
[Solution.Monorepo]: () => i18n2.t(localeKeys2.solution.monorepo)
|
62026
|
-
};
|
62027
|
-
var SubSolutionText = {
|
62028
|
-
[SubSolution.MWA]: () => i18n2.t(localeKeys2.sub_solution.mwa),
|
62029
|
-
[SubSolution.Module]: () => i18n2.t(localeKeys2.sub_solution.module)
|
62030
|
-
};
|
62031
|
-
var SolutionToolsMap = {
|
62032
|
-
[Solution.MWA]: "@modern-js/app-tools",
|
62033
|
-
[Solution.Module]: "@modern-js/module-tools",
|
62034
|
-
[Solution.Monorepo]: "@modern-js/monorepo-tools"
|
62035
|
-
};
|
62036
|
-
var SolutionGenerator = {
|
62037
|
-
[Solution.MWA]: "@modern-js/mwa-generator",
|
62038
|
-
[Solution.Module]: "@modern-js/module-generator",
|
62039
|
-
[Solution.Monorepo]: "@modern-js/monorepo-generator"
|
62040
|
-
};
|
62041
|
-
var SubSolutionGenerator = {
|
62042
|
-
[SubSolution.MWA]: "@modern-js/mwa-generator",
|
62043
|
-
[SubSolution.Module]: "@modern-js/module-generator"
|
62044
|
-
};
|
62045
62033
|
var DependenceGenerator = "@modern-js/dependence-generator";
|
62046
62034
|
|
62047
62035
|
// ../../generator-utils/dist/esm/utils/fsExist.js
|
package/package.json
CHANGED
@@ -15,7 +15,7 @@
|
|
15
15
|
"modern",
|
16
16
|
"modern.js"
|
17
17
|
],
|
18
|
-
"version": "3.
|
18
|
+
"version": "3.3.0",
|
19
19
|
"jsnext:source": "./src/index.ts",
|
20
20
|
"main": "./dist/index.js",
|
21
21
|
"files": [
|
@@ -23,7 +23,7 @@
|
|
23
23
|
"/dist/index.js"
|
24
24
|
],
|
25
25
|
"dependencies": {
|
26
|
-
"@modern-js/utils": "2.
|
26
|
+
"@modern-js/utils": "2.41.0"
|
27
27
|
},
|
28
28
|
"devDependencies": {
|
29
29
|
"@modern-js/codesmith": "2.3.0",
|
@@ -32,12 +32,12 @@
|
|
32
32
|
"@types/node": "^14",
|
33
33
|
"jest": "^29",
|
34
34
|
"typescript": "^5",
|
35
|
-
"@modern-js/dependence-generator": "3.
|
36
|
-
"@modern-js/generator-common": "3.
|
37
|
-
"@modern-js/
|
38
|
-
"@modern-js/
|
39
|
-
"@scripts/build": "2.
|
40
|
-
"@scripts/jest-config": "2.
|
35
|
+
"@modern-js/dependence-generator": "3.3.0",
|
36
|
+
"@modern-js/generator-common": "3.3.0",
|
37
|
+
"@modern-js/plugin-i18n": "2.41.0",
|
38
|
+
"@modern-js/generator-utils": "3.3.0",
|
39
|
+
"@scripts/build": "2.41.0",
|
40
|
+
"@scripts/jest-config": "2.41.0"
|
41
41
|
},
|
42
42
|
"sideEffects": false,
|
43
43
|
"publishConfig": {
|