@modern-js/builder 3.11.3 → 3.12.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.
|
@@ -59,7 +59,7 @@ function removeUndefinedKey(obj) {
|
|
|
59
59
|
}
|
|
60
60
|
async function parseCommonConfig(builderConfig, options) {
|
|
61
61
|
const frameworkConfigPath = options?.frameworkConfigPath;
|
|
62
|
-
const { plugins: [...plugins] = [], splitChunks, performance: { ...performanceConfig } = {}, output: { module = false, enableCssModuleTSDeclaration, disableCssModuleExtension, disableTsChecker, disableSvgr, svgDefaultExport, assetsRetry, enableAssetManifest, sourceMap, convertToRem, polyfill, dataUriLimit = 10000, distPath = {}, ...outputConfig } = {}, html: { outputStructure, appIcon, ...htmlConfig } = {}, source: { alias, globalVars, transformImport, reactCompiler, ...sourceConfig } = {}, dev = {}, server = {}, security: { checkSyntax, sri, ...securityConfig } = {}, tools: { devServer, tsChecker, minifyCss, less, sass, svgr, htmlPlugin, autoprefixer, ...toolsConfig } = {}, environments = {}, resolve = {} } = builderConfig;
|
|
62
|
+
const { plugins: [...plugins] = [], splitChunks, performance: { ...performanceConfig } = {}, output: { module = false, enableCssModuleTSDeclaration, disableCssModuleExtension, disableTsChecker, disableSvgr, svgDefaultExport, assetsRetry, enableAssetManifest, sourceMap, convertToRem, polyfill, dataUriLimit = 10000, distPath = {}, ...outputConfig } = {}, html: { outputStructure, appIcon, ...htmlConfig } = {}, source: { alias, globalVars, transformImport, reactCompiler, ...sourceConfig } = {}, dev = {}, server = {}, security: { checkSyntax, sri: _sri, ...securityConfig } = {}, tools: { devServer, tsChecker, minifyCss, less, sass, svgr, htmlPlugin, autoprefixer: _autoprefixer, ...toolsConfig } = {}, environments = {}, resolve = {} } = builderConfig;
|
|
63
63
|
let combinedAlias;
|
|
64
64
|
if (alias || resolve.alias) combinedAlias = [].concat(alias ?? []).concat(resolve.alias ?? []);
|
|
65
65
|
const rsbuildConfig = {
|
|
@@ -95,7 +95,7 @@ async function parseCommonConfig(builderConfig, options) {
|
|
|
95
95
|
output.sourceMap ||= {};
|
|
96
96
|
output.sourceMap.css ??= 'production' !== process.env.NODE_ENV;
|
|
97
97
|
}
|
|
98
|
-
const { server: _server, worker, ...rsbuildDistPath } = distPath;
|
|
98
|
+
const { server: _server, worker: _worker, ...rsbuildDistPath } = distPath;
|
|
99
99
|
output.distPath = rsbuildDistPath;
|
|
100
100
|
output.distPath.html ??= 'html';
|
|
101
101
|
output.polyfill ??= 'entry';
|
|
@@ -26,7 +26,7 @@ function removeUndefinedKey(obj) {
|
|
|
26
26
|
}
|
|
27
27
|
async function parseCommonConfig(builderConfig, options) {
|
|
28
28
|
const frameworkConfigPath = options?.frameworkConfigPath;
|
|
29
|
-
const { plugins: [...plugins] = [], splitChunks, performance: { ...performanceConfig } = {}, output: { module = false, enableCssModuleTSDeclaration, disableCssModuleExtension, disableTsChecker, disableSvgr, svgDefaultExport, assetsRetry, enableAssetManifest, sourceMap, convertToRem, polyfill, dataUriLimit = 10000, distPath = {}, ...outputConfig } = {}, html: { outputStructure, appIcon, ...htmlConfig } = {}, source: { alias, globalVars, transformImport, reactCompiler, ...sourceConfig } = {}, dev = {}, server = {}, security: { checkSyntax, sri, ...securityConfig } = {}, tools: { devServer, tsChecker, minifyCss, less, sass, svgr, htmlPlugin, autoprefixer, ...toolsConfig } = {}, environments = {}, resolve = {} } = builderConfig;
|
|
29
|
+
const { plugins: [...plugins] = [], splitChunks, performance: { ...performanceConfig } = {}, output: { module = false, enableCssModuleTSDeclaration, disableCssModuleExtension, disableTsChecker, disableSvgr, svgDefaultExport, assetsRetry, enableAssetManifest, sourceMap, convertToRem, polyfill, dataUriLimit = 10000, distPath = {}, ...outputConfig } = {}, html: { outputStructure, appIcon, ...htmlConfig } = {}, source: { alias, globalVars, transformImport, reactCompiler, ...sourceConfig } = {}, dev = {}, server = {}, security: { checkSyntax, sri: _sri, ...securityConfig } = {}, tools: { devServer, tsChecker, minifyCss, less, sass, svgr, htmlPlugin, autoprefixer: _autoprefixer, ...toolsConfig } = {}, environments = {}, resolve = {} } = builderConfig;
|
|
30
30
|
let combinedAlias;
|
|
31
31
|
if (alias || resolve.alias) combinedAlias = [].concat(alias ?? []).concat(resolve.alias ?? []);
|
|
32
32
|
const rsbuildConfig = {
|
|
@@ -62,7 +62,7 @@ async function parseCommonConfig(builderConfig, options) {
|
|
|
62
62
|
output.sourceMap ||= {};
|
|
63
63
|
output.sourceMap.css ??= 'production' !== process.env.NODE_ENV;
|
|
64
64
|
}
|
|
65
|
-
const { server: _server, worker, ...rsbuildDistPath } = distPath;
|
|
65
|
+
const { server: _server, worker: _worker, ...rsbuildDistPath } = distPath;
|
|
66
66
|
output.distPath = rsbuildDistPath;
|
|
67
67
|
output.distPath.html ??= 'html';
|
|
68
68
|
output.polyfill ??= 'entry';
|
|
@@ -27,7 +27,7 @@ function removeUndefinedKey(obj) {
|
|
|
27
27
|
}
|
|
28
28
|
async function parseCommonConfig(builderConfig, options) {
|
|
29
29
|
const frameworkConfigPath = options?.frameworkConfigPath;
|
|
30
|
-
const { plugins: [...plugins] = [], splitChunks, performance: { ...performanceConfig } = {}, output: { module = false, enableCssModuleTSDeclaration, disableCssModuleExtension, disableTsChecker, disableSvgr, svgDefaultExport, assetsRetry, enableAssetManifest, sourceMap, convertToRem, polyfill, dataUriLimit = 10000, distPath = {}, ...outputConfig } = {}, html: { outputStructure, appIcon, ...htmlConfig } = {}, source: { alias, globalVars, transformImport, reactCompiler, ...sourceConfig } = {}, dev = {}, server = {}, security: { checkSyntax, sri, ...securityConfig } = {}, tools: { devServer, tsChecker, minifyCss, less, sass, svgr, htmlPlugin, autoprefixer, ...toolsConfig } = {}, environments = {}, resolve = {} } = builderConfig;
|
|
30
|
+
const { plugins: [...plugins] = [], splitChunks, performance: { ...performanceConfig } = {}, output: { module = false, enableCssModuleTSDeclaration, disableCssModuleExtension, disableTsChecker, disableSvgr, svgDefaultExport, assetsRetry, enableAssetManifest, sourceMap, convertToRem, polyfill, dataUriLimit = 10000, distPath = {}, ...outputConfig } = {}, html: { outputStructure, appIcon, ...htmlConfig } = {}, source: { alias, globalVars, transformImport, reactCompiler, ...sourceConfig } = {}, dev = {}, server = {}, security: { checkSyntax, sri: _sri, ...securityConfig } = {}, tools: { devServer, tsChecker, minifyCss, less, sass, svgr, htmlPlugin, autoprefixer: _autoprefixer, ...toolsConfig } = {}, environments = {}, resolve = {} } = builderConfig;
|
|
31
31
|
let combinedAlias;
|
|
32
32
|
if (alias || resolve.alias) combinedAlias = [].concat(alias ?? []).concat(resolve.alias ?? []);
|
|
33
33
|
const rsbuildConfig = {
|
|
@@ -63,7 +63,7 @@ async function parseCommonConfig(builderConfig, options) {
|
|
|
63
63
|
output.sourceMap ||= {};
|
|
64
64
|
output.sourceMap.css ??= 'production' !== process.env.NODE_ENV;
|
|
65
65
|
}
|
|
66
|
-
const { server: _server, worker, ...rsbuildDistPath } = distPath;
|
|
66
|
+
const { server: _server, worker: _worker, ...rsbuildDistPath } = distPath;
|
|
67
67
|
output.distPath = rsbuildDistPath;
|
|
68
68
|
output.distPath.html ??= 'html';
|
|
69
69
|
output.polyfill ??= 'entry';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@modern-js/builder",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.12.0",
|
|
4
4
|
"description": "A builder for Modern.js",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"rsbuild-plugin-rsc": "0.1.1",
|
|
58
58
|
"rspack-manifest-plugin": "5.2.2",
|
|
59
59
|
"ts-deepmerge": "8.0.0",
|
|
60
|
-
"@modern-js/utils": "3.
|
|
60
|
+
"@modern-js/utils": "3.12.0"
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
63
63
|
"@types/html-minifier-terser": "^7.0.2",
|
|
@@ -65,9 +65,9 @@
|
|
|
65
65
|
"react": "^19.3.1",
|
|
66
66
|
"terser": "^5.51.2",
|
|
67
67
|
"typescript": "^5.3.0",
|
|
68
|
-
"@modern-js/
|
|
69
|
-
"@modern-js/
|
|
70
|
-
"@scripts/rstest-config": "2.66.
|
|
68
|
+
"@modern-js/types": "3.12.0",
|
|
69
|
+
"@modern-js/rslib": "3.12.0",
|
|
70
|
+
"@scripts/rstest-config": "2.66.8"
|
|
71
71
|
},
|
|
72
72
|
"publishConfig": {
|
|
73
73
|
"access": "public",
|