@modern-js/app-tools 2.3.1-alpha.2 → 3.0.0-beta.0
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +87 -0
- package/README.md +14 -18
- package/dist/js/modern/analyze/getServerRoutes.js +5 -2
- package/dist/js/modern/analyze/index.js +47 -46
- package/dist/js/modern/builder/builder-rspack/index.js +8 -0
- package/dist/js/modern/builder/builder-webpack/builderPlugins/compatModern.js +41 -0
- package/dist/js/modern/builder/builder-webpack/index.js +93 -0
- package/dist/js/modern/builder/{webpackPlugins/routerPlugin.js → builder-webpack/webpackPlugins/RouterPlugin.js} +4 -1
- package/dist/js/modern/builder/builder-webpack/webpackPlugins/index.js +1 -0
- package/dist/js/modern/builder/generator/createBuilderOptions.js +24 -0
- package/dist/js/modern/builder/generator/createBuilderProviderConfig.js +39 -0
- package/dist/js/modern/builder/generator/getBuilderTargets.js +21 -0
- package/dist/js/modern/builder/generator/index.js +53 -0
- package/dist/js/modern/builder/index.js +13 -133
- package/dist/js/modern/builder/{builderPlugins/compatModern.js → shared/builderPlugins/adapterModern.js} +102 -116
- package/dist/js/modern/builder/shared/bundlerPlugins/HtmlAsyncChunkPlugin.js +27 -0
- package/dist/js/modern/builder/shared/bundlerPlugins/HtmlBottomTemplate.js +34 -0
- package/dist/js/modern/builder/{share.js → shared/createCopyPattern.js} +0 -0
- package/dist/js/modern/builder/shared/index.js +3 -0
- package/dist/js/modern/builder/{loaders → shared/loaders}/serverModuleLoader.js +0 -0
- package/dist/js/modern/builder/shared/types.js +0 -0
- package/dist/js/modern/config/default.js +2 -2
- package/dist/js/modern/config/index.js +3 -8
- package/dist/js/modern/config/initialize/index.js +12 -0
- package/dist/js/modern/config/{initial → initialize}/inits.js +4 -2
- package/dist/js/modern/config/{initial → legacy}/createHtmlConfig.js +0 -0
- package/dist/js/modern/config/{initial → legacy}/createOutputConfig.js +0 -0
- package/dist/js/modern/config/{initial → legacy}/createSourceConfig.js +0 -0
- package/dist/js/modern/config/{initial → legacy}/createToolsConfig.js +0 -0
- package/dist/js/modern/config/{initial/transformNormalizedConfig.js → legacy/index.js} +4 -0
- package/dist/js/modern/index.js +18 -8
- package/dist/js/modern/initialize/index.js +36 -28
- package/dist/js/modern/locale/zh.js +1 -1
- package/dist/js/modern/types/utils.js +0 -0
- package/dist/js/node/analyze/getServerRoutes.js +3 -1
- package/dist/js/node/analyze/index.js +48 -47
- package/dist/js/node/builder/builder-rspack/index.js +31 -0
- package/dist/js/node/builder/builder-webpack/builderPlugins/compatModern.js +64 -0
- package/dist/js/node/builder/builder-webpack/index.js +118 -0
- package/dist/js/node/builder/{webpackPlugins/routerPlugin.js → builder-webpack/webpackPlugins/RouterPlugin.js} +10 -5
- package/dist/js/node/builder/builder-webpack/webpackPlugins/index.js +17 -0
- package/dist/js/node/builder/generator/createBuilderOptions.js +47 -0
- package/dist/js/node/builder/generator/createBuilderProviderConfig.js +60 -0
- package/dist/js/node/builder/generator/getBuilderTargets.js +39 -0
- package/dist/js/node/builder/generator/index.js +82 -0
- package/dist/js/node/builder/index.js +14 -123
- package/dist/js/node/builder/{builderPlugins/compatModern.js → shared/builderPlugins/adapterModern.js} +107 -120
- package/dist/js/node/builder/{webpackPlugins/htmlAsyncChunkPlugin.js → shared/bundlerPlugins/HtmlAsyncChunkPlugin.js} +17 -20
- package/dist/js/node/builder/{webpackPlugins/htmlBottomTemplate.js → shared/bundlerPlugins/HtmlBottomTemplate.js} +21 -24
- package/dist/js/node/builder/{share.js → shared/createCopyPattern.js} +3 -3
- package/dist/js/node/builder/shared/index.js +19 -0
- package/dist/js/node/builder/{loaders → shared/loaders}/serverModuleLoader.js +0 -0
- package/dist/js/node/builder/shared/types.js +15 -0
- package/dist/js/node/config/default.js +2 -2
- package/dist/js/node/config/index.js +4 -19
- package/dist/js/node/config/{initial → initialize}/index.js +10 -16
- package/dist/js/node/config/{initial → initialize}/inits.js +4 -2
- package/dist/js/node/config/{initial → legacy}/createHtmlConfig.js +0 -0
- package/dist/js/node/config/{initial → legacy}/createOutputConfig.js +0 -0
- package/dist/js/node/config/{initial → legacy}/createSourceConfig.js +0 -0
- package/dist/js/node/config/{initial → legacy}/createToolsConfig.js +0 -0
- package/dist/js/node/config/{initial/transformNormalizedConfig.js → legacy/index.js} +8 -3
- package/dist/js/node/index.js +18 -8
- package/dist/js/node/initialize/index.js +35 -28
- package/dist/js/node/locale/zh.js +1 -1
- package/dist/js/node/types/utils.js +15 -0
- package/dist/js/treeshaking/analyze/generateCode.js +14 -14
- package/dist/js/treeshaking/analyze/getBundleEntry.js +2 -2
- package/dist/js/treeshaking/analyze/getClientRoutes/getRoutes.js +1 -1
- package/dist/js/treeshaking/analyze/getClientRoutes/getRoutesLegacy.js +1 -1
- package/dist/js/treeshaking/analyze/getFileSystemEntry.js +1 -1
- package/dist/js/treeshaking/analyze/getServerRoutes.js +8 -6
- package/dist/js/treeshaking/analyze/index.js +142 -137
- package/dist/js/treeshaking/analyze/nestedRoutes.js +5 -5
- package/dist/js/treeshaking/analyze/templates.js +6 -6
- package/dist/js/treeshaking/analyze/utils.js +3 -3
- package/dist/js/treeshaking/builder/builder-rspack/index.js +6 -0
- package/dist/js/treeshaking/builder/builder-webpack/builderPlugins/compatModern.js +64 -0
- package/dist/js/treeshaking/builder/builder-webpack/index.js +301 -0
- package/dist/js/treeshaking/builder/{webpackPlugins/routerPlugin.js → builder-webpack/webpackPlugins/RouterPlugin.js} +6 -3
- package/dist/js/treeshaking/builder/builder-webpack/webpackPlugins/index.js +1 -0
- package/dist/js/treeshaking/builder/generator/createBuilderOptions.js +41 -0
- package/dist/js/treeshaking/builder/generator/createBuilderProviderConfig.js +70 -0
- package/dist/js/treeshaking/builder/generator/getBuilderTargets.js +16 -0
- package/dist/js/treeshaking/builder/generator/index.js +199 -0
- package/dist/js/treeshaking/builder/index.js +29 -228
- package/dist/js/treeshaking/builder/{builderPlugins/compatModern.js → shared/builderPlugins/adapterModern.js} +138 -142
- package/dist/js/treeshaking/builder/{webpackPlugins/htmlAsyncChunkPlugin.js → shared/bundlerPlugins/HtmlAsyncChunkPlugin.js} +0 -0
- package/dist/js/treeshaking/builder/{webpackPlugins/htmlBottomTemplate.js → shared/bundlerPlugins/HtmlBottomTemplate.js} +2 -2
- package/dist/js/treeshaking/builder/{share.js → shared/createCopyPattern.js} +0 -0
- package/dist/js/treeshaking/builder/shared/index.js +3 -0
- package/dist/js/treeshaking/builder/{loaders → shared/loaders}/serverModuleLoader.js +0 -0
- package/dist/js/treeshaking/builder/shared/types.js +1 -0
- package/dist/js/treeshaking/commands/dev.js +2 -2
- package/dist/js/treeshaking/commands/serve.js +2 -2
- package/dist/js/treeshaking/config/default.js +2 -2
- package/dist/js/treeshaking/config/index.js +3 -3
- package/dist/js/treeshaking/config/initialize/index.js +10 -0
- package/dist/js/treeshaking/config/{initial → initialize}/inits.js +6 -4
- package/dist/js/treeshaking/config/legacy/createHtmlConfig.js +19 -0
- package/dist/js/treeshaking/config/{initial → legacy}/createOutputConfig.js +1 -1
- package/dist/js/treeshaking/config/{initial → legacy}/createSourceConfig.js +1 -1
- package/dist/js/treeshaking/config/{initial → legacy}/createToolsConfig.js +1 -1
- package/dist/js/treeshaking/config/{initial/transformNormalizedConfig.js → legacy/index.js} +4 -1
- package/dist/js/treeshaking/index.js +19 -12
- package/dist/js/treeshaking/initialize/index.js +36 -28
- package/dist/js/treeshaking/locale/zh.js +1 -1
- package/dist/js/treeshaking/types/utils.js +1 -0
- package/dist/js/treeshaking/utils/config.js +2 -2
- package/dist/js/treeshaking/utils/getServerInternalPlugins.js +2 -2
- package/dist/types/analyze/generateCode.d.ts +1 -1
- package/dist/types/analyze/getBundleEntry.d.ts +1 -1
- package/dist/types/analyze/getFileSystemEntry.d.ts +1 -1
- package/dist/types/analyze/getHtmlTemplate.d.ts +2 -2
- package/dist/types/analyze/getServerRoutes.d.ts +1 -1
- package/dist/types/analyze/index.d.ts +5 -1
- package/dist/types/builder/builder-rspack/index.d.ts +2 -0
- package/dist/types/builder/{builderPlugins → builder-webpack/builderPlugins}/compatModern.d.ts +2 -2
- package/dist/types/builder/builder-webpack/index.d.ts +4 -0
- package/dist/types/builder/{webpackPlugins/routerPlugin.d.ts → builder-webpack/webpackPlugins/RouterPlugin.d.ts} +1 -1
- package/dist/types/builder/builder-webpack/webpackPlugins/index.d.ts +1 -0
- package/dist/types/builder/generator/createBuilderOptions.d.ts +3 -0
- package/dist/types/builder/generator/createBuilderProviderConfig.d.ts +2 -0
- package/dist/types/builder/generator/getBuilderTargets.d.ts +3 -0
- package/dist/types/builder/generator/index.d.ts +17 -0
- package/dist/types/builder/index.d.ts +1 -18
- package/dist/types/builder/shared/builderPlugins/adapterModern.d.ts +13 -0
- package/dist/types/builder/{webpackPlugins/htmlAsyncChunkPlugin.d.ts → shared/bundlerPlugins/HtmlAsyncChunkPlugin.d.ts} +2 -1
- package/dist/types/builder/{webpackPlugins/htmlBottomTemplate.d.ts → shared/bundlerPlugins/HtmlBottomTemplate.d.ts} +2 -1
- package/dist/types/builder/{share.d.ts → shared/createCopyPattern.d.ts} +1 -1
- package/dist/types/builder/shared/index.d.ts +3 -0
- package/dist/types/builder/shared/loaders/serverModuleLoader.d.ts +4 -0
- package/dist/types/builder/shared/types.d.ts +16 -0
- package/dist/types/commands/build.d.ts +1 -1
- package/dist/types/commands/deploy.d.ts +1 -1
- package/dist/types/commands/dev.d.ts +1 -1
- package/dist/types/commands/inspect.d.ts +1 -1
- package/dist/types/commands/serve.d.ts +1 -1
- package/dist/types/config/default.d.ts +1 -1
- package/dist/types/config/index.d.ts +3 -2
- package/dist/types/config/initialize/index.d.ts +2 -0
- package/dist/types/config/{initial → initialize}/inits.d.ts +3 -3
- package/dist/types/config/{initial → legacy}/createHtmlConfig.d.ts +1 -1
- package/dist/types/config/{initial → legacy}/createOutputConfig.d.ts +1 -1
- package/dist/types/config/{initial → legacy}/createSourceConfig.d.ts +1 -1
- package/dist/types/config/{initial → legacy}/createToolsConfig.d.ts +1 -1
- package/dist/types/config/legacy/index.d.ts +3 -0
- package/dist/types/defineConfig.d.ts +2 -2
- package/dist/types/index.d.ts +7 -3
- package/dist/types/initialize/index.d.ts +6 -2
- package/dist/types/types/config/deploy.d.ts +1 -2
- package/dist/types/types/config/dev.d.ts +2 -3
- package/dist/types/types/config/experiments.d.ts +1 -2
- package/dist/types/types/config/html.d.ts +5 -3
- package/dist/types/types/config/index.d.ts +41 -48
- package/dist/types/types/config/output.d.ts +8 -3
- package/dist/types/types/config/performance.d.ts +6 -3
- package/dist/types/types/config/security.d.ts +3 -3
- package/dist/types/types/config/source.d.ts +7 -3
- package/dist/types/types/config/tools.d.ts +10 -4
- package/dist/types/types/hooks.d.ts +6 -4
- package/dist/types/types/index.d.ts +19 -7
- package/dist/types/types/utils.d.ts +7 -0
- package/dist/types/utils/config.d.ts +1 -1
- package/dist/types/utils/getServerInternalPlugins.d.ts +1 -1
- package/dist/types/utils/printInstructions.d.ts +1 -1
- package/package.json +34 -25
- package/dist/js/modern/builder/webpackPlugins/htmlAsyncChunkPlugin.js +0 -30
- package/dist/js/modern/builder/webpackPlugins/htmlBottomTemplate.js +0 -37
- package/dist/js/modern/config/initial/index.js +0 -16
- package/dist/js/treeshaking/config/initial/createHtmlConfig.js +0 -19
- package/dist/js/treeshaking/config/initial/index.js +0 -12
- package/dist/types/builder/loaders/serverModuleLoader.d.ts +0 -3
- package/dist/types/config/initial/index.d.ts +0 -4
- package/dist/types/config/initial/transformNormalizedConfig.d.ts +0 -2
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@modern-js/app-tools",
|
3
|
-
"description": "
|
3
|
+
"description": "A Progressive React Framework for modern web development.",
|
4
4
|
"homepage": "https://modernjs.dev",
|
5
5
|
"bugs": "https://github.com/modern-js-dev/modern.js/issues",
|
6
6
|
"repository": "modern-js-dev/modern.js",
|
@@ -11,7 +11,7 @@
|
|
11
11
|
"modern",
|
12
12
|
"modern.js"
|
13
13
|
],
|
14
|
-
"version": "
|
14
|
+
"version": "3.0.0-beta.0",
|
15
15
|
"jsnext:source": "./src/index.ts",
|
16
16
|
"types": "./dist/types/index.d.ts",
|
17
17
|
"main": "./dist/js/node/index.js",
|
@@ -63,37 +63,46 @@
|
|
63
63
|
"@babel/runtime": "^7.18.0",
|
64
64
|
"@babel/traverse": "^7.18.0",
|
65
65
|
"@babel/types": "^7.18.0",
|
66
|
-
"@modern-js/builder": "2.3.0",
|
67
|
-
"@modern-js/builder-plugin-esbuild": "2.3.0",
|
68
|
-
"@modern-js/builder-plugin-node-polyfill": "2.3.0",
|
69
|
-
"@modern-js/builder-shared": "2.3.0",
|
70
|
-
"@modern-js/builder-webpack-provider": "2.3.0",
|
71
|
-
"@modern-js/core": "2.3.0",
|
72
|
-
"@modern-js/new-action": "2.3.0",
|
73
|
-
"@modern-js/node-bundle-require": "2.3.0",
|
74
|
-
"@modern-js/plugin": "2.3.0",
|
75
|
-
"@modern-js/plugin-data-loader": "2.3.0",
|
76
|
-
"@modern-js/plugin-i18n": "2.3.0",
|
77
|
-
"@modern-js/plugin-lint": "2.3.0",
|
78
|
-
"@modern-js/prod-server": "2.3.0",
|
79
|
-
"@modern-js/server": "2.3.0",
|
80
|
-
"@modern-js/types": "2.3.0",
|
81
|
-
"@modern-js/upgrade": "2.3.0",
|
82
|
-
"@modern-js/utils": "2.3.0",
|
83
66
|
"es-module-lexer": "^1.1.0",
|
84
|
-
"esbuild": "0.15.7"
|
67
|
+
"esbuild": "0.15.7",
|
68
|
+
"@modern-js/builder": "2.4.1-beta.0",
|
69
|
+
"@modern-js/builder-plugin-esbuild": "2.4.1-beta.0",
|
70
|
+
"@modern-js/builder-plugin-node-polyfill": "2.4.1-beta.0",
|
71
|
+
"@modern-js/builder-shared": "2.5.0-beta.0",
|
72
|
+
"@modern-js/builder-webpack-provider": "2.5.0-beta.0",
|
73
|
+
"@modern-js/core": "2.4.1-beta.0",
|
74
|
+
"@modern-js/new-action": "2.4.1-beta.0",
|
75
|
+
"@modern-js/node-bundle-require": "2.4.1-beta.0",
|
76
|
+
"@modern-js/plugin": "2.4.0",
|
77
|
+
"@modern-js/plugin-data-loader": "2.4.1-beta.0",
|
78
|
+
"@modern-js/plugin-i18n": "2.4.1-beta.0",
|
79
|
+
"@modern-js/plugin-lint": "2.4.1-beta.0",
|
80
|
+
"@modern-js/prod-server": "2.4.1-beta.0",
|
81
|
+
"@modern-js/server": "2.4.1-beta.0",
|
82
|
+
"@modern-js/types": "2.4.0",
|
83
|
+
"@modern-js/upgrade": "2.4.1-beta.0",
|
84
|
+
"@modern-js/utils": "2.4.1-beta.0"
|
85
85
|
},
|
86
86
|
"devDependencies": {
|
87
|
-
"@modern-js/builder-plugin-swc": "2.3.0",
|
88
|
-
"@modern-js/server-core": "2.3.0",
|
89
|
-
"@scripts/build": "2.3.0",
|
90
|
-
"@scripts/jest-config": "2.3.0",
|
91
87
|
"@types/babel__traverse": "^7.14.2",
|
92
88
|
"@types/jest": "^27",
|
93
89
|
"@types/node": "^14",
|
94
90
|
"jest": "^27",
|
95
91
|
"typescript": "^4",
|
96
|
-
"webpack": "^5.75.0"
|
92
|
+
"webpack": "^5.75.0",
|
93
|
+
"@modern-js/builder-plugin-swc": "2.4.1-beta.0",
|
94
|
+
"@modern-js/builder-rspack-provider": "2.5.0-beta.0",
|
95
|
+
"@modern-js/server-core": "2.4.1-beta.0",
|
96
|
+
"@scripts/jest-config": "2.4.0",
|
97
|
+
"@scripts/build": "2.4.0"
|
98
|
+
},
|
99
|
+
"peerDependencies": {
|
100
|
+
"@modern-js/builder-rspack-provider": "^2.5.0-beta.0"
|
101
|
+
},
|
102
|
+
"peerDependenciesMeta": {
|
103
|
+
"@modern-js/builder-rspack-provider": {
|
104
|
+
"optional": true
|
105
|
+
}
|
97
106
|
},
|
98
107
|
"sideEffects": false,
|
99
108
|
"publishConfig": {
|
@@ -1,30 +0,0 @@
|
|
1
|
-
class HtmlAsyncChunkPlugin {
|
2
|
-
constructor(htmlWebpackPlugin) {
|
3
|
-
this.name = "HtmlAsyncChunkPlugin";
|
4
|
-
this.htmlWebpackPlugin = htmlWebpackPlugin;
|
5
|
-
}
|
6
|
-
apply(compiler) {
|
7
|
-
compiler.hooks.compilation.tap(
|
8
|
-
this.name,
|
9
|
-
(compilation) => {
|
10
|
-
const hooks = this.htmlWebpackPlugin.getHooks(compilation);
|
11
|
-
hooks.alterAssetTagGroups.tap(this.name, (assets) => {
|
12
|
-
const tags = [...assets.headTags, ...assets.bodyTags];
|
13
|
-
for (const tag of tags) {
|
14
|
-
if (tag.tagName === "script") {
|
15
|
-
const { attributes } = tag;
|
16
|
-
if (attributes && attributes.defer === true) {
|
17
|
-
attributes.async = true;
|
18
|
-
delete attributes.defer;
|
19
|
-
}
|
20
|
-
}
|
21
|
-
}
|
22
|
-
return assets;
|
23
|
-
});
|
24
|
-
}
|
25
|
-
);
|
26
|
-
}
|
27
|
-
}
|
28
|
-
export {
|
29
|
-
HtmlAsyncChunkPlugin
|
30
|
-
};
|
@@ -1,37 +0,0 @@
|
|
1
|
-
class BottomTemplatePlugin {
|
2
|
-
constructor(htmlWebpackPlugin) {
|
3
|
-
this.bottomTemplateReg = /<!--<\?-\s*bottomTemplate\s*\?>-->/;
|
4
|
-
this.bodyRegExp = /(<\/\s*body\s*>)/i;
|
5
|
-
this.htmlWebpackPlugin = htmlWebpackPlugin;
|
6
|
-
this.name = "bottom-template";
|
7
|
-
}
|
8
|
-
apply(compiler) {
|
9
|
-
compiler.hooks.compilation.tap(
|
10
|
-
this.name,
|
11
|
-
(compilation) => {
|
12
|
-
this.htmlWebpackPlugin.getHooks(compilation).beforeEmit.tap(this.name, (data) => {
|
13
|
-
var _a;
|
14
|
-
if (!((_a = data.plugin.options) == null ? void 0 : _a.__internal__)) {
|
15
|
-
return data;
|
16
|
-
}
|
17
|
-
if (this.bottomTemplateReg.test(data.html)) {
|
18
|
-
data.html = data.html.replace(this.bottomTemplateReg, "");
|
19
|
-
const { bottomTemplate } = data.plugin.options;
|
20
|
-
if (bottomTemplate) {
|
21
|
-
data.html = data.html.replace(
|
22
|
-
this.bodyRegExp,
|
23
|
-
(match) => `
|
24
|
-
${bottomTemplate}
|
25
|
-
${match}`
|
26
|
-
);
|
27
|
-
}
|
28
|
-
}
|
29
|
-
return data;
|
30
|
-
});
|
31
|
-
}
|
32
|
-
);
|
33
|
-
}
|
34
|
-
}
|
35
|
-
export {
|
36
|
-
BottomTemplatePlugin
|
37
|
-
};
|
@@ -1,16 +0,0 @@
|
|
1
|
-
import { initHtmlConfig, initSourceConfig, initToolsConfig } from "./inits";
|
2
|
-
import { transformNormalizedConfig } from "./transformNormalizedConfig";
|
3
|
-
function checkIsLegacyConfig(config) {
|
4
|
-
return Boolean(config.legacy);
|
5
|
-
}
|
6
|
-
function initialNormalizedConfig(config, appContext) {
|
7
|
-
initHtmlConfig(config, appContext);
|
8
|
-
initSourceConfig(config, appContext);
|
9
|
-
initToolsConfig(config);
|
10
|
-
return config;
|
11
|
-
}
|
12
|
-
export {
|
13
|
-
checkIsLegacyConfig,
|
14
|
-
initialNormalizedConfig,
|
15
|
-
transformNormalizedConfig
|
16
|
-
};
|
@@ -1,19 +0,0 @@
|
|
1
|
-
function createHtmlConfig(config) {
|
2
|
-
var _output = config.output, disableHtmlFolder = _output.disableHtmlFolder, favicon = _output.favicon, faviconByEntries = _output.faviconByEntries, inject = _output.inject, injectByEntries = _output.injectByEntries, meta = _output.meta, metaByEntries = _output.metaByEntries, mountId = _output.mountId, title = _output.title, titleByEntries = _output.titleByEntries, templateParameters = _output.templateParameters, templateParametersByEntries = _output.templateParametersByEntries, crossorigin = _output.crossorigin;
|
3
|
-
return {
|
4
|
-
disableHtmlFolder: disableHtmlFolder,
|
5
|
-
favicon: favicon,
|
6
|
-
faviconByEntries: faviconByEntries,
|
7
|
-
inject: inject,
|
8
|
-
injectByEntries: injectByEntries,
|
9
|
-
meta: meta,
|
10
|
-
metaByEntries: metaByEntries,
|
11
|
-
mountId: mountId,
|
12
|
-
title: title,
|
13
|
-
titleByEntries: titleByEntries,
|
14
|
-
crossorigin: crossorigin,
|
15
|
-
templateParameters: templateParameters,
|
16
|
-
templateParametersByEntries: templateParametersByEntries
|
17
|
-
};
|
18
|
-
}
|
19
|
-
export { createHtmlConfig };
|
@@ -1,12 +0,0 @@
|
|
1
|
-
import { initHtmlConfig, initSourceConfig, initToolsConfig } from "./inits";
|
2
|
-
import { transformNormalizedConfig } from "./transformNormalizedConfig";
|
3
|
-
function checkIsLegacyConfig(config) {
|
4
|
-
return Boolean(config.legacy);
|
5
|
-
}
|
6
|
-
function initialNormalizedConfig(config, appContext) {
|
7
|
-
initHtmlConfig(config, appContext);
|
8
|
-
initSourceConfig(config, appContext);
|
9
|
-
initToolsConfig(config);
|
10
|
-
return config;
|
11
|
-
}
|
12
|
-
export { checkIsLegacyConfig, initialNormalizedConfig, transformNormalizedConfig };
|
@@ -1,4 +0,0 @@
|
|
1
|
-
import { AppNormalizedConfig, IAppContext, AppLegacyUserConfig, AppUserConfig } from '../../types';
|
2
|
-
export { transformNormalizedConfig } from './transformNormalizedConfig';
|
3
|
-
export declare function checkIsLegacyConfig(config: AppLegacyUserConfig | AppUserConfig): config is AppLegacyUserConfig;
|
4
|
-
export declare function initialNormalizedConfig(config: AppNormalizedConfig, appContext: IAppContext): AppNormalizedConfig;
|