@rsbuild/core 1.7.0 → 1.7.1
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/131.js +7 -9
- package/dist/index.cjs +7 -9
- package/package.json +1 -1
package/dist/131.js
CHANGED
|
@@ -3556,7 +3556,7 @@ function createPublicContext(context) {
|
|
|
3556
3556
|
async function createContext(options, userConfig) {
|
|
3557
3557
|
let { cwd } = options, rootPath = userConfig.root ? ensureAbsolutePath(cwd, userConfig.root) : cwd, rsbuildConfig = await withDefaultConfig(rootPath, userConfig), cachePath = (0, external_node_path_.join)(rootPath, 'node_modules', '.cache'), specifiedEnvironments = options.environment && options.environment.length > 0 ? options.environment : void 0, bundlerType = userConfig.provider ? 'webpack' : 'rspack';
|
|
3558
3558
|
return {
|
|
3559
|
-
version: "1.7.
|
|
3559
|
+
version: "1.7.1",
|
|
3560
3560
|
rootPath,
|
|
3561
3561
|
distPath: '',
|
|
3562
3562
|
cachePath,
|
|
@@ -5612,11 +5612,9 @@ function getDefaultSwcConfig({ browserslist, cacheRoot, config, isProd }) {
|
|
|
5612
5612
|
env: {
|
|
5613
5613
|
targets: browserslist
|
|
5614
5614
|
},
|
|
5615
|
-
|
|
5616
|
-
|
|
5617
|
-
|
|
5618
|
-
exportedEnum: isProd
|
|
5619
|
-
}
|
|
5615
|
+
collectTypeScriptInfo: {
|
|
5616
|
+
typeExports: !0,
|
|
5617
|
+
exportedEnum: isProd
|
|
5620
5618
|
}
|
|
5621
5619
|
};
|
|
5622
5620
|
}
|
|
@@ -9200,7 +9198,7 @@ let applyServerOptions = (command)=>{
|
|
|
9200
9198
|
};
|
|
9201
9199
|
function setupCommands() {
|
|
9202
9200
|
let cli = ((name = "")=>new CAC(name))('rsbuild');
|
|
9203
|
-
cli.version("1.7.
|
|
9201
|
+
cli.version("1.7.1"), cli.option('--base <base>', 'Set the base path of the server').option('-c, --config <config>', 'Set the configuration file (relative or absolute path)').option('--config-loader <loader>', 'Set the config file loader (auto | jiti | native)', {
|
|
9204
9202
|
default: 'auto'
|
|
9205
9203
|
}).option('--env-dir <dir>', 'Set the directory for loading `.env` files').option('--env-mode <mode>', 'Set the env mode to load the `.env.[mode]` file').option('--environment <name>', 'Set the environment name(s) to build', {
|
|
9206
9204
|
type: [
|
|
@@ -9269,7 +9267,7 @@ function initNodeEnv() {
|
|
|
9269
9267
|
}
|
|
9270
9268
|
function showGreeting() {
|
|
9271
9269
|
let { npm_execpath, npm_lifecycle_event, NODE_RUN_SCRIPT_NAME } = process.env, isBun = npm_execpath?.includes('.bun');
|
|
9272
|
-
src_logger.greet(`${'npx' === npm_lifecycle_event || isBun || NODE_RUN_SCRIPT_NAME ? '\n' : ''}Rsbuild v1.7.
|
|
9270
|
+
src_logger.greet(`${'npx' === npm_lifecycle_event || isBun || NODE_RUN_SCRIPT_NAME ? '\n' : ''}Rsbuild v1.7.1\n`);
|
|
9273
9271
|
}
|
|
9274
9272
|
function setupLogLevel() {
|
|
9275
9273
|
let logLevelIndex = process.argv.findIndex((item)=>'--log-level' === item || '--logLevel' === item);
|
|
@@ -9290,5 +9288,5 @@ function runCLI() {
|
|
|
9290
9288
|
src_logger.error('Failed to start Rsbuild CLI.'), src_logger.error(err);
|
|
9291
9289
|
}
|
|
9292
9290
|
}
|
|
9293
|
-
let src_version = "1.7.
|
|
9291
|
+
let src_version = "1.7.1";
|
|
9294
9292
|
export { PLUGIN_CSS_NAME, PLUGIN_SWC_NAME, createRsbuild, defaultAllowedOrigins, defineConfig, ensureAssetPrefix, external_node_util_promisify, loadConfig_loadConfig as loadConfig, loadEnv, mergeRsbuildConfig, node_fs, node_os, node_process, rspack_rspack as rspack, runCLI, src_logger as logger, src_version as version };
|
package/dist/index.cjs
CHANGED
|
@@ -3689,7 +3689,7 @@ ${section.body}` : section.body).join("\n\n"));
|
|
|
3689
3689
|
async function createContext(options, userConfig) {
|
|
3690
3690
|
let { cwd } = options, rootPath = userConfig.root ? ensureAbsolutePath(cwd, userConfig.root) : cwd, rsbuildConfig = await withDefaultConfig(rootPath, userConfig), cachePath = (0, external_node_path_.join)(rootPath, 'node_modules', '.cache'), specifiedEnvironments = options.environment && options.environment.length > 0 ? options.environment : void 0, bundlerType = userConfig.provider ? 'webpack' : 'rspack';
|
|
3691
3691
|
return {
|
|
3692
|
-
version: "1.7.
|
|
3692
|
+
version: "1.7.1",
|
|
3693
3693
|
rootPath,
|
|
3694
3694
|
distPath: '',
|
|
3695
3695
|
cachePath,
|
|
@@ -5733,11 +5733,9 @@ ${section.body}` : section.body).join("\n\n"));
|
|
|
5733
5733
|
env: {
|
|
5734
5734
|
targets: browserslist
|
|
5735
5735
|
},
|
|
5736
|
-
|
|
5737
|
-
|
|
5738
|
-
|
|
5739
|
-
exportedEnum: isProd
|
|
5740
|
-
}
|
|
5736
|
+
collectTypeScriptInfo: {
|
|
5737
|
+
typeExports: !0,
|
|
5738
|
+
exportedEnum: isProd
|
|
5741
5739
|
}
|
|
5742
5740
|
};
|
|
5743
5741
|
}
|
|
@@ -9333,7 +9331,7 @@ try {
|
|
|
9333
9331
|
};
|
|
9334
9332
|
function setupCommands() {
|
|
9335
9333
|
let cli = ((name = "")=>new CAC(name))('rsbuild');
|
|
9336
|
-
cli.version("1.7.
|
|
9334
|
+
cli.version("1.7.1"), cli.option('--base <base>', 'Set the base path of the server').option('-c, --config <config>', 'Set the configuration file (relative or absolute path)').option('--config-loader <loader>', 'Set the config file loader (auto | jiti | native)', {
|
|
9337
9335
|
default: 'auto'
|
|
9338
9336
|
}).option('--env-dir <dir>', 'Set the directory for loading `.env` files').option('--env-mode <mode>', 'Set the env mode to load the `.env.[mode]` file').option('--environment <name>', 'Set the environment name(s) to build', {
|
|
9339
9337
|
type: [
|
|
@@ -9402,7 +9400,7 @@ try {
|
|
|
9402
9400
|
}
|
|
9403
9401
|
function showGreeting() {
|
|
9404
9402
|
let { npm_execpath, npm_lifecycle_event, NODE_RUN_SCRIPT_NAME } = process.env, isBun = npm_execpath?.includes('.bun');
|
|
9405
|
-
src_logger.greet(`${'npx' === npm_lifecycle_event || isBun || NODE_RUN_SCRIPT_NAME ? '\n' : ''}Rsbuild v1.7.
|
|
9403
|
+
src_logger.greet(`${'npx' === npm_lifecycle_event || isBun || NODE_RUN_SCRIPT_NAME ? '\n' : ''}Rsbuild v1.7.1\n`);
|
|
9406
9404
|
}
|
|
9407
9405
|
function setupLogLevel() {
|
|
9408
9406
|
let logLevelIndex = process.argv.findIndex((item)=>'--log-level' === item || '--logLevel' === item);
|
|
@@ -9423,7 +9421,7 @@ try {
|
|
|
9423
9421
|
src_logger.error('Failed to start Rsbuild CLI.'), src_logger.error(err);
|
|
9424
9422
|
}
|
|
9425
9423
|
}
|
|
9426
|
-
let src_version = "1.7.
|
|
9424
|
+
let src_version = "1.7.1";
|
|
9427
9425
|
})(), exports.PLUGIN_CSS_NAME = __webpack_exports__.PLUGIN_CSS_NAME, exports.PLUGIN_SWC_NAME = __webpack_exports__.PLUGIN_SWC_NAME, exports.createRsbuild = __webpack_exports__.createRsbuild, exports.defaultAllowedOrigins = __webpack_exports__.defaultAllowedOrigins, exports.defineConfig = __webpack_exports__.defineConfig, exports.ensureAssetPrefix = __webpack_exports__.ensureAssetPrefix, exports.loadConfig = __webpack_exports__.loadConfig, exports.loadEnv = __webpack_exports__.loadEnv, exports.logger = __webpack_exports__.logger, exports.mergeRsbuildConfig = __webpack_exports__.mergeRsbuildConfig, exports.rspack = __webpack_exports__.rspack, exports.runCLI = __webpack_exports__.runCLI, exports.version = __webpack_exports__.version, __webpack_exports__)-1 === [
|
|
9428
9426
|
"PLUGIN_CSS_NAME",
|
|
9429
9427
|
"PLUGIN_SWC_NAME",
|