@rsbuild/core 1.1.13 → 1.1.14
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.cjs +5 -5
- package/dist/index.js +5 -5
- package/dist-types/types/config.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -2111,7 +2111,7 @@ var __webpack_exports__ = {};
|
|
|
2111
2111
|
compress: !0,
|
|
2112
2112
|
printUrls: !0,
|
|
2113
2113
|
strictPort: !1,
|
|
2114
|
-
cors: !
|
|
2114
|
+
cors: !1
|
|
2115
2115
|
}), getDefaultSourceConfig = ()=>({
|
|
2116
2116
|
alias: {},
|
|
2117
2117
|
define: {},
|
|
@@ -2746,7 +2746,7 @@ var __webpack_exports__ = {};
|
|
|
2746
2746
|
async function createContext(options, userConfig, bundlerType) {
|
|
2747
2747
|
let { cwd } = options, rootPath = userConfig.root ? getAbsolutePath(cwd, userConfig.root) : cwd, rsbuildConfig = await withDefaultConfig(rootPath, userConfig), cachePath = (0, external_node_path_.join)(rootPath, 'node_modules', '.cache');
|
|
2748
2748
|
return {
|
|
2749
|
-
version: "1.1.
|
|
2749
|
+
version: "1.1.14",
|
|
2750
2750
|
rootPath,
|
|
2751
2751
|
distPath: '',
|
|
2752
2752
|
cachePath,
|
|
@@ -7163,11 +7163,11 @@ throw new Error('Failed to load Node.js addon: "${name}"\\n' + error);
|
|
|
7163
7163
|
}
|
|
7164
7164
|
}(), process.title = 'rsbuild-node';
|
|
7165
7165
|
let { npm_execpath } = process.env;
|
|
7166
|
-
(!npm_execpath || npm_execpath.includes('npx-cli.js') || npm_execpath.includes('.bun')) && console.log(), rslog_index_js_namespaceObject.logger.greet(` Rsbuild v1.1.
|
|
7166
|
+
(!npm_execpath || npm_execpath.includes('npx-cli.js') || npm_execpath.includes('.bun')) && console.log(), rslog_index_js_namespaceObject.logger.greet(` Rsbuild v1.1.14\n`);
|
|
7167
7167
|
}();
|
|
7168
7168
|
try {
|
|
7169
7169
|
!function() {
|
|
7170
|
-
program.name('rsbuild').usage('<command> [options]').version("1.1.
|
|
7170
|
+
program.name('rsbuild').usage('<command> [options]').version("1.1.14");
|
|
7171
7171
|
let devCommand = program.command('dev'), buildCommand = program.command('build'), previewCommand = program.command('preview'), inspectCommand = program.command('inspect');
|
|
7172
7172
|
[
|
|
7173
7173
|
devCommand,
|
|
@@ -7226,7 +7226,7 @@ throw new Error('Failed to load Node.js addon: "${name}"\\n' + error);
|
|
|
7226
7226
|
rslog_index_js_namespaceObject.logger.error('Failed to start Rsbuild CLI.'), rslog_index_js_namespaceObject.logger.error(err);
|
|
7227
7227
|
}
|
|
7228
7228
|
}
|
|
7229
|
-
let src_rslib_entry_version = "1.1.
|
|
7229
|
+
let src_rslib_entry_version = "1.1.14";
|
|
7230
7230
|
})();
|
|
7231
7231
|
var __webpack_export_target__ = exports;
|
|
7232
7232
|
for(var __webpack_i__ in __webpack_exports__)__webpack_export_target__[__webpack_i__] = __webpack_exports__[__webpack_i__];
|
package/dist/index.js
CHANGED
|
@@ -2017,7 +2017,7 @@ let config_require = (0, __WEBPACK_EXTERNAL_MODULE_node_module__.createRequire)(
|
|
|
2017
2017
|
compress: !0,
|
|
2018
2018
|
printUrls: !0,
|
|
2019
2019
|
strictPort: !1,
|
|
2020
|
-
cors: !
|
|
2020
|
+
cors: !1
|
|
2021
2021
|
}), getDefaultSourceConfig = ()=>({
|
|
2022
2022
|
alias: {},
|
|
2023
2023
|
define: {},
|
|
@@ -2652,7 +2652,7 @@ async function updateEnvironmentContext(context, configs) {
|
|
|
2652
2652
|
async function createContext(options, userConfig, bundlerType) {
|
|
2653
2653
|
let { cwd } = options, rootPath = userConfig.root ? getAbsolutePath(cwd, userConfig.root) : cwd, rsbuildConfig = await withDefaultConfig(rootPath, userConfig), cachePath = (0, external_node_path_.join)(rootPath, 'node_modules', '.cache');
|
|
2654
2654
|
return {
|
|
2655
|
-
version: "1.1.
|
|
2655
|
+
version: "1.1.14",
|
|
2656
2656
|
rootPath,
|
|
2657
2657
|
distPath: '',
|
|
2658
2658
|
cachePath,
|
|
@@ -7050,11 +7050,11 @@ async function runCLI() {
|
|
|
7050
7050
|
}
|
|
7051
7051
|
}(), process.title = 'rsbuild-node';
|
|
7052
7052
|
let { npm_execpath } = process.env;
|
|
7053
|
-
(!npm_execpath || npm_execpath.includes('npx-cli.js') || npm_execpath.includes('.bun')) && console.log(), __WEBPACK_EXTERNAL_MODULE__compiled_rslog_index_js__.logger.greet(` Rsbuild v1.1.
|
|
7053
|
+
(!npm_execpath || npm_execpath.includes('npx-cli.js') || npm_execpath.includes('.bun')) && console.log(), __WEBPACK_EXTERNAL_MODULE__compiled_rslog_index_js__.logger.greet(` Rsbuild v1.1.14\n`);
|
|
7054
7054
|
}();
|
|
7055
7055
|
try {
|
|
7056
7056
|
!function() {
|
|
7057
|
-
program.name('rsbuild').usage('<command> [options]').version("1.1.
|
|
7057
|
+
program.name('rsbuild').usage('<command> [options]').version("1.1.14");
|
|
7058
7058
|
let devCommand = program.command('dev'), buildCommand = program.command('build'), previewCommand = program.command('preview'), inspectCommand = program.command('inspect');
|
|
7059
7059
|
[
|
|
7060
7060
|
devCommand,
|
|
@@ -7113,6 +7113,6 @@ async function runCLI() {
|
|
|
7113
7113
|
__WEBPACK_EXTERNAL_MODULE__compiled_rslog_index_js__.logger.error('Failed to start Rsbuild CLI.'), __WEBPACK_EXTERNAL_MODULE__compiled_rslog_index_js__.logger.error(err);
|
|
7114
7114
|
}
|
|
7115
7115
|
}
|
|
7116
|
-
let src_version = "1.1.
|
|
7116
|
+
let src_version = "1.1.14";
|
|
7117
7117
|
var __webpack_exports__logger = __WEBPACK_EXTERNAL_MODULE__compiled_rslog_index_js__.logger, __webpack_exports__rspack = __WEBPACK_EXTERNAL_MODULE__rspack_core__.rspack;
|
|
7118
7118
|
export { PLUGIN_CSS_NAME, PLUGIN_SWC_NAME, internal_namespaceObject as __internalHelper, createRsbuild, defineConfig, ensureAssetPrefix, config_loadConfig as loadConfig, loadEnv, mergeRsbuildConfig, runCLI, src_version as version, __webpack_exports__logger as logger, __webpack_exports__rspack as rspack };
|
|
@@ -281,7 +281,7 @@ export interface ServerConfig {
|
|
|
281
281
|
* - true: enable CORS with default options.
|
|
282
282
|
* - false: disable CORS.
|
|
283
283
|
* - object: enable CORS with the specified options.
|
|
284
|
-
* @default
|
|
284
|
+
* @default false
|
|
285
285
|
* @link https://github.com/expressjs/cors
|
|
286
286
|
*/
|
|
287
287
|
cors?: boolean | cors.CorsOptions;
|