@rsbuild/core 2.1.0-beta.0 → 2.1.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.
@@ -1,8 +1,8 @@
1
1
  (() => {
2
2
  var __webpack_modules__ = {
3
- 755: (module, __unused_webpack_exports, __nccwpck_require__) => {
3
+ 690: (module, __unused_webpack_exports, __nccwpck_require__) => {
4
4
  "use strict";
5
- const { HtmlWebpackChildCompiler } = __nccwpck_require__(104);
5
+ const { HtmlWebpackChildCompiler } = __nccwpck_require__(139);
6
6
  const compilerMap = new WeakMap();
7
7
  class CachedChildCompilation {
8
8
  constructor(compiler) {
@@ -311,7 +311,7 @@
311
311
  }
312
312
  module.exports = { CachedChildCompilation };
313
313
  },
314
- 104: (module) => {
314
+ 139: (module) => {
315
315
  "use strict";
316
316
  class HtmlWebpackChildCompiler {
317
317
  constructor(templates) {
@@ -480,7 +480,7 @@
480
480
  }
481
481
  module.exports = { HtmlWebpackChildCompiler };
482
482
  },
483
- 128: (module) => {
483
+ 577: (module) => {
484
484
  "use strict";
485
485
  module.exports = {};
486
486
  module.exports.none = (chunks) => chunks;
@@ -499,7 +499,7 @@
499
499
  };
500
500
  module.exports.auto = module.exports.none;
501
501
  },
502
- 775: (module) => {
502
+ 480: (module) => {
503
503
  "use strict";
504
504
  module.exports = function (err) {
505
505
  return {
@@ -523,7 +523,7 @@
523
523
  };
524
524
  };
525
525
  },
526
- 726: (module, __unused_webpack_exports, __nccwpck_require__) => {
526
+ 703: (module, __unused_webpack_exports, __nccwpck_require__) => {
527
527
  "use strict";
528
528
  const { AsyncSeriesWaterfallHook } = __nccwpck_require__(159);
529
529
  const htmlWebpackPluginHooksMap = new WeakMap();
@@ -549,7 +549,7 @@
549
549
  }
550
550
  module.exports = { getHtmlRspackPluginHooks };
551
551
  },
552
- 259: (module) => {
552
+ 822: (module) => {
553
553
  const voidTags = [
554
554
  "area",
555
555
  "base",
@@ -617,19 +617,19 @@
617
617
  htmlTagObjectToString,
618
618
  };
619
619
  },
620
- 194: (module, __unused_webpack_exports, __nccwpck_require__) => {
620
+ 623: (module, __unused_webpack_exports, __nccwpck_require__) => {
621
621
  "use strict";
622
622
  const promisify = __nccwpck_require__(23).promisify;
623
623
  const vm = __nccwpck_require__(154);
624
624
  const fs = __nccwpck_require__(896);
625
625
  const path = __nccwpck_require__(928);
626
- const { CachedChildCompilation } = __nccwpck_require__(755);
626
+ const { CachedChildCompilation } = __nccwpck_require__(690);
627
627
  const { createHtmlTagObject, htmlTagObjectToString, HtmlTagArray } =
628
- __nccwpck_require__(259);
629
- const prettyError = __nccwpck_require__(775);
630
- const chunkSorter = __nccwpck_require__(128);
628
+ __nccwpck_require__(822);
629
+ const prettyError = __nccwpck_require__(480);
630
+ const chunkSorter = __nccwpck_require__(577);
631
631
  const getHtmlRspackPluginHooks =
632
- __nccwpck_require__(726).getHtmlRspackPluginHooks;
632
+ __nccwpck_require__(703).getHtmlRspackPluginHooks;
633
633
  const WITH_PLACEHOLDER = "function __with_placeholder__";
634
634
  class HtmlRspackPlugin {
635
635
  constructor(userOptions = {}) {
@@ -2398,6 +2398,6 @@
2398
2398
  }
2399
2399
  if (typeof __nccwpck_require__ !== "undefined")
2400
2400
  __nccwpck_require__.ab = __dirname + "/";
2401
- var __webpack_exports__ = __nccwpck_require__(194);
2401
+ var __webpack_exports__ = __nccwpck_require__(623);
2402
2402
  module.exports = __webpack_exports__;
2403
2403
  })();
@@ -1,15 +1,15 @@
1
1
  (() => {
2
2
  "use strict";
3
3
  var __webpack_modules__ = {
4
- 93: (module, __unused_webpack_exports, __nccwpck_require__) => {
5
- module.exports = __nccwpck_require__(879)["default"];
4
+ 303: (module, __unused_webpack_exports, __nccwpck_require__) => {
5
+ module.exports = __nccwpck_require__(713)["default"];
6
6
  },
7
- 879: (__unused_webpack_module, exports, __nccwpck_require__) => {
7
+ 713: (__unused_webpack_module, exports, __nccwpck_require__) => {
8
8
  var __webpack_unused_export__;
9
9
  __webpack_unused_export__ = { value: true };
10
10
  exports["default"] = loader;
11
11
  var _nodePath = _interopRequireDefault(__nccwpck_require__(760));
12
- var _utils = __nccwpck_require__(434);
12
+ var _utils = __nccwpck_require__(732);
13
13
  function _interopRequireDefault(e) {
14
14
  return e && e.__esModule ? e : { default: e };
15
15
  }
@@ -179,7 +179,7 @@
179
179
  callback(null, result.css, map, { ast });
180
180
  }
181
181
  },
182
- 434: (module, exports, __nccwpck_require__) => {
182
+ 732: (module, exports, __nccwpck_require__) => {
183
183
  module = __nccwpck_require__.nmd(module);
184
184
  Object.defineProperty(exports, "__esModule", { value: true });
185
185
  exports.exec = exec;
@@ -716,6 +716,6 @@
716
716
  })();
717
717
  if (typeof __nccwpck_require__ !== "undefined")
718
718
  __nccwpck_require__.ab = __dirname + "/";
719
- var __webpack_exports__ = __nccwpck_require__(93);
719
+ var __webpack_exports__ = __nccwpck_require__(303);
720
720
  module.exports = __webpack_exports__;
721
721
  })();
package/dist/756.js CHANGED
@@ -3289,9 +3289,10 @@ function initPluginAPI({ context, pluginManager }) {
3289
3289
  default:
3290
3290
  throw Error(`${color.dim('[rsbuild]')} ${color.yellow('getRsbuildConfig')} received an invalid type parameter.`);
3291
3291
  }
3292
- }, exposed = new Map(), expose = (id, api)=>{
3293
- exposed.set(id, api);
3294
- }, useExposed = (id)=>exposed.get(id), transformId = 0, transformer = {}, processAssetsFns = [], resolveFns = [];
3292
+ }, GLOBAL_EXPOSED_KEY = Symbol('global-exposed'), exposed = new Map(), expose = (id, api, options)=>{
3293
+ let exposedAPIs = exposed.get(id) ?? new Map(), key = options?.environment ?? GLOBAL_EXPOSED_KEY;
3294
+ exposedAPIs.set(key, api), exposed.set(id, exposedAPIs);
3295
+ }, transformId = 0, transformer = {}, processAssetsFns = [], resolveFns = [];
3295
3296
  hooks.modifyBundlerChain.tap((chain, { target, environment })=>{
3296
3297
  let pluginName = 'RsbuildCorePlugin';
3297
3298
  chain.plugin(pluginName).use(class {
@@ -3351,7 +3352,10 @@ function initPluginAPI({ context, pluginManager }) {
3351
3352
  }
3352
3353
  });
3353
3354
  },
3354
- useExposed,
3355
+ useExposed: (id)=>{
3356
+ let exposedAPIs = exposed.get(id);
3357
+ if (exposedAPIs) return void 0 !== environment && exposedAPIs.has(environment) ? exposedAPIs.get(environment) : exposedAPIs.get(GLOBAL_EXPOSED_KEY);
3358
+ },
3355
3359
  processAssets: (descriptor, handler)=>{
3356
3360
  processAssetsFns.push({
3357
3361
  environment: environment,
@@ -3497,7 +3501,7 @@ function createPublicContext(context) {
3497
3501
  async function createContext(options, userConfig, logger) {
3498
3502
  let { cwd } = options, rootPath = userConfig.root ? ensureAbsolutePath(cwd, userConfig.root) : cwd, rsbuildConfig = await withDefaultConfig(rootPath, userConfig), cachePath = join(rootPath, 'node_modules', '.cache'), specifiedEnvironments = options.environment && options.environment.length > 0 ? options.environment : void 0;
3499
3503
  return {
3500
- version: "2.1.0-beta.0",
3504
+ version: "2.1.0",
3501
3505
  rootPath,
3502
3506
  distPath: '',
3503
3507
  cachePath,
@@ -5118,12 +5122,11 @@ function pluginExternals() {
5118
5122
  };
5119
5123
  }
5120
5124
  async function gzipSize(input) {
5121
- let data = await new Promise((resolve, reject)=>{
5125
+ return (await new Promise((resolve, reject)=>{
5122
5126
  node_zlib.gzip(input, (err, result)=>{
5123
5127
  err ? reject(err) : resolve(result);
5124
5128
  });
5125
- });
5126
- return Buffer.byteLength(data);
5129
+ })).length;
5127
5130
  }
5128
5131
  function getSnapshotPath(dir, snapshotHash) {
5129
5132
  return snapshotHash ? node_path.join(dir, `rsbuild/file-sizes-${snapshotHash}.json`) : node_path.join(dir, 'rsbuild/file-sizes.json');
@@ -5148,7 +5151,7 @@ async function saveSnapshots(snapshotPath, snapshots, logger) {
5148
5151
  logger.debug('Failed to save file size snapshots:', err);
5149
5152
  }
5150
5153
  }
5151
- let EXCLUDE_ASSET_REGEX = /\.(?:map|LICENSE\.txt|d\.ts)$/, excludeAsset = (asset)=>EXCLUDE_ASSET_REGEX.test(asset.name), isSignificantDiff = (diff)=>Math.abs(diff) >= 10, formatDiff = (diff)=>{
5154
+ let EXCLUDE_ASSET_REGEX = /\.(?:map|LICENSE\.txt|d\.ts)$/, isSignificantDiff = (diff)=>Math.abs(diff) >= 10, formatDiff = (diff)=>{
5152
5155
  let label = `(${diff > 0 ? '+' : '-'}${calcFileSize(Math.abs(diff))})`;
5153
5156
  return {
5154
5157
  label: (diff > 0 ? color.red : color.green)(label),
@@ -5173,22 +5176,25 @@ function getHeader(maxFileLength, maxSizeLength, fileHeader, showGzipHeader) {
5173
5176
  let calcFileSize = (len)=>{
5174
5177
  let val = len / 1000;
5175
5178
  return `${val.toFixed(val < 1 ? 2 : 1)} kB`;
5176
- }, COMPRESSIBLE_REGEX = /\.(?:js|css|html|json|svg|txt|xml|xhtml|wasm|manifest|md)$/i;
5177
- async function printFileSizes(options, stats, rootPath, distPath, environmentName, previousSizes) {
5179
+ }, COMPRESSIBLE_REGEX = /\.(?:js|css|html|json|svg|txt|xml|xhtml|wasm|manifest|md)$/i, isCompressible = (assetName)=>COMPRESSIBLE_REGEX.test(assetName), getFilePath = (assetName)=>{
5180
+ let queryIndex = assetName.indexOf('?');
5181
+ return -1 === queryIndex ? assetName : assetName.slice(0, queryIndex);
5182
+ };
5183
+ async function printFileSizes(options, stats, rootPath, distPath, environmentName, previousSizes, saveSnapshot) {
5178
5184
  let logs = [], showDetail = !1 !== options.detail, showDiff = !1 !== options.diff && null !== previousSizes, showTotal = !1 !== options.total;
5179
5185
  if (!showTotal && !showDetail) return {
5180
5186
  logs
5181
5187
  };
5182
- let relativeDistPath = node_path.relative(rootPath, distPath), snapshot = {
5188
+ let relativeDistPath = node_path.relative(rootPath, distPath), snapshot = saveSnapshot ? {
5183
5189
  files: {},
5184
5190
  totalSize: 0,
5185
5191
  totalGzipSize: 0
5186
- }, formatAsset = async (asset)=>{
5187
- let { size, filePath } = asset, gzippedSize = options.compressed && COMPRESSIBLE_REGEX.test(filePath) ? await gzipSize(asset.content) : null, normalizedPath = normalizeFilePath(filePath);
5188
- snapshot.files[normalizedPath] = {
5192
+ } : null, formatAsset = (filePath, size, gzippedSize)=>{
5193
+ let normalizedPath = '';
5194
+ (snapshot || showDiff) && (normalizedPath = normalizeFilePath(filePath), snapshot && (snapshot.files[normalizedPath] = {
5189
5195
  size,
5190
5196
  gzippedSize: gzippedSize ?? void 0
5191
- };
5197
+ }));
5192
5198
  let sizeLabel = calcFileSize(size), sizeLabelLength = sizeLabel.length, gzipSizeLabel = gzippedSize ? getAssetColor(gzippedSize)(calcFileSize(gzippedSize)) : null;
5193
5199
  if (showDiff) {
5194
5200
  let sizeData = previousSizes[environmentName]?.files[normalizedPath], sizeDiff = size - (sizeData?.size ?? 0);
@@ -5201,12 +5207,11 @@ async function printFileSizes(options, stats, rootPath, distPath, environmentNam
5201
5207
  isSignificantDiff(gzipDiff) && (gzipSizeLabel += ` ${formatDiff(gzipDiff).label}`);
5202
5208
  }
5203
5209
  }
5204
- let folder = node_path.join(relativeDistPath, node_path.dirname(filePath)), filename = node_path.basename(filePath), filenameLabel = color.dim(folder + node_path.sep) + (JS_REGEX.test(filename) ? color.cyan(filename) : filename.endsWith('.css') ? color.yellow(filename) : filename.endsWith('.html') ? color.green(filename) : color.magenta(filename)), filenameLength = (folder + node_path.sep + filename).length;
5210
+ let separatorIndex = filePath.lastIndexOf('/'), folderLabel = (-1 === separatorIndex ? node_path.join(relativeDistPath, '.') : node_path.join(relativeDistPath, filePath.slice(0, separatorIndex))) + node_path.sep, filename = -1 === separatorIndex ? filePath : filePath.slice(separatorIndex + 1);
5205
5211
  return {
5206
5212
  filePath,
5207
- filename,
5208
- filenameLabel,
5209
- filenameLength,
5213
+ filenameLabel: color.dim(folderLabel) + (JS_REGEX.test(filename) ? color.cyan(filename) : filename.endsWith('.css') ? color.yellow(filename) : filename.endsWith('.html') ? color.green(filename) : color.magenta(filename)),
5214
+ filenameLength: folderLabel.length + filename.length,
5210
5215
  size,
5211
5216
  sizeLabel,
5212
5217
  sizeLabelLength,
@@ -5214,21 +5219,21 @@ async function printFileSizes(options, stats, rootPath, distPath, environmentNam
5214
5219
  gzipSizeLabel
5215
5220
  };
5216
5221
  }, getAssets = async ()=>{
5217
- let assets = Object.entries(stats.compilation.assets).map(([assetName, value])=>{
5218
- let filePath = assetName.split('?')[0], content = value.source();
5219
- return {
5220
- filePath,
5221
- size: Buffer.byteLength(content),
5222
- content
5223
- };
5224
- }), exclude = options.exclude ?? excludeAsset, filteredAssets = assets.filter((asset)=>{
5225
- let publicAsset = {
5226
- name: asset.filePath,
5227
- size: asset.size
5228
- };
5229
- return !exclude(publicAsset) && (!options.include || options.include(publicAsset));
5230
- });
5231
- return (await Promise.all(filteredAssets.map((asset)=>formatAsset(asset)))).sort((a, b)=>a.size - b.size);
5222
+ let { exclude, include } = options, formattedAssets = [], compilationAssets = stats.compilation.assets;
5223
+ for (let assetName of Object.keys(compilationAssets)){
5224
+ let value = compilationAssets[assetName], filePath = getFilePath(assetName);
5225
+ if (!exclude && EXCLUDE_ASSET_REGEX.test(filePath)) continue;
5226
+ let content = options.compressed && isCompressible(filePath) ? value.source() : void 0, size = void 0 === content ? value.size() : Buffer.byteLength(content);
5227
+ if (exclude || include) {
5228
+ let publicAsset = {
5229
+ name: filePath,
5230
+ size
5231
+ };
5232
+ if (exclude?.(publicAsset) || include && !include(publicAsset)) continue;
5233
+ }
5234
+ void 0 === content ? formattedAssets.push(formatAsset(filePath, size, null)) : formattedAssets.push(gzipSize(content).then((gzippedSize)=>formatAsset(filePath, size, gzippedSize)));
5235
+ }
5236
+ return (await Promise.all(formattedAssets)).sort((a, b)=>a.size - b.size);
5232
5237
  }, assets = await getAssets();
5233
5238
  if (0 === assets.length) return {
5234
5239
  logs
@@ -5242,7 +5247,7 @@ async function printFileSizes(options, stats, rootPath, distPath, environmentNam
5242
5247
  totalGzipSize
5243
5248
  };
5244
5249
  })(assets, options.compressed);
5245
- snapshot.totalSize = totalSize, snapshot.totalGzipSize = totalGzipSize;
5250
+ snapshot && (snapshot.totalSize = totalSize, snapshot.totalGzipSize = totalGzipSize);
5246
5251
  let fileHeader = showDetail ? `File (${environmentName})` : '', { totalSizeTitle, totalSizeLabel, totalSizeLabelLength } = (()=>{
5247
5252
  if (!showTotal) return {
5248
5253
  totalSizeTitle: '',
@@ -5273,7 +5278,9 @@ async function printFileSizes(options, stats, rootPath, distPath, environmentNam
5273
5278
  totalGzipSize
5274
5279
  }) : null;
5275
5280
  if (showDetail) {
5276
- let maxFileLength = Math.max(...assets.map((asset)=>asset.filenameLength), showTotal ? totalSizeTitle.length : 0, fileHeader.length), maxSizeLength = Math.max(...assets.map((a)=>a.sizeLabelLength), totalSizeLabelLength), showGzipHeader = !!(options.compressed && assets.some((item)=>null !== item.gzippedSize));
5281
+ let maxFileLength = Math.max(showTotal ? totalSizeTitle.length : 0, fileHeader.length), maxSizeLength = totalSizeLabelLength, hasGzipSize = !1;
5282
+ for (let asset of assets)asset.filenameLength > maxFileLength && (maxFileLength = asset.filenameLength), asset.sizeLabelLength > maxSizeLength && (maxSizeLength = asset.sizeLabelLength), null !== asset.gzippedSize && (hasGzipSize = !0);
5283
+ let showGzipHeader = !!(options.compressed && hasGzipSize);
5277
5284
  for (let asset of (logs.push(getHeader(maxFileLength, maxSizeLength, fileHeader, showGzipHeader)), assets)){
5278
5285
  let { sizeLabel, filenameLabel } = asset, { sizeLabelLength, gzipSizeLabel, filenameLength } = asset;
5279
5286
  sizeLabelLength < maxSizeLength && (sizeLabel += ' '.repeat(maxSizeLength - sizeLabelLength)), filenameLength < maxFileLength && (filenameLabel += ' '.repeat(maxFileLength - filenameLength));
@@ -6699,7 +6706,7 @@ function createAssetsMiddleware(context, ready, outputFileSystem) {
6699
6706
  }
6700
6707
  async function setupOutputFileSystem(writeToDisk, compilers) {
6701
6708
  if (!0 !== writeToDisk) {
6702
- let { createFsFromVolume, Volume } = await import("./memfs.js").then(__webpack_require__.t.bind(__webpack_require__, "../../node_modules/.pnpm/memfs@4.57.7/node_modules/memfs/lib/index.js", 23)), outputFileSystem = createFsFromVolume(new Volume());
6709
+ let { createFsFromVolume, Volume } = await import("./memfs.js").then(__webpack_require__.t.bind(__webpack_require__, "../../node_modules/.pnpm/memfs@4.57.8/node_modules/memfs/lib/index.js", 23)), outputFileSystem = createFsFromVolume(new Volume());
6703
6710
  for (let compiler of compilers)compiler.outputFileSystem = outputFileSystem;
6704
6711
  }
6705
6712
  let compiler = compilers.find((compiler)=>!!compiler.outputFileSystem);
@@ -8651,7 +8658,7 @@ function applyDefaultPlugins(pluginManager, context) {
8651
8658
  ...defaultConfig,
8652
8659
  ...printFileSize
8653
8660
  };
8654
- })(config), statsItem, api.context.rootPath, distPath, name, prevSnapshots);
8661
+ })(config), statsItem, api.context.rootPath, distPath, name, prevSnapshots, showDiff);
8655
8662
  return snapshot && (nextSnapshots[name] = snapshot), sizeLogs.join('\n');
8656
8663
  })).catch((err)=>{
8657
8664
  api.logger.warn('Failed to print file size.'), api.logger.warn(err);
@@ -9486,7 +9493,7 @@ try {
9486
9493
  api.modifyBundlerChain(async (chain, { CHAIN_ID, environment, isDev })=>{
9487
9494
  let { output: { manifest }, dev: { writeToDisk } } = environment.config;
9488
9495
  if (!1 === manifest) return;
9489
- let manifestOptions = normalizeManifestObjectConfig(manifest), { RspackManifestPlugin } = await import("./rspack-manifest-plugin.js").then(__webpack_require__.bind(__webpack_require__, "../../node_modules/.pnpm/rspack-manifest-plugin@5.2.2_@rspack+core@2.1.0-beta.0/node_modules/rspack-manifest-plugin/dist/index.js")), { htmlPaths } = environment, filter = manifestOptions.filter ?? ((file)=>!file.name.endsWith('.LICENSE.txt'));
9496
+ let manifestOptions = normalizeManifestObjectConfig(manifest), { RspackManifestPlugin } = await import("./rspack-manifest-plugin.js").then(__webpack_require__.bind(__webpack_require__, "../../node_modules/.pnpm/rspack-manifest-plugin@5.2.2_@rspack+core@2.1.0/node_modules/rspack-manifest-plugin/dist/index.js")), { htmlPaths } = environment, filter = manifestOptions.filter ?? ((file)=>!file.name.endsWith('.LICENSE.txt'));
9490
9497
  manifestFilenames.set(environment.name, manifestOptions.filename);
9491
9498
  let pluginOptions = {
9492
9499
  fileName: manifestOptions.filename,
@@ -10021,7 +10028,7 @@ let applyServerOptions = (command)=>{
10021
10028
  };
10022
10029
  function setupCommands() {
10023
10030
  let cli = ((name = "")=>new CAC(name))('rsbuild');
10024
- cli.version("2.1.0-beta.0"), 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)', {
10031
+ cli.version("2.1.0"), 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)', {
10025
10032
  default: 'auto'
10026
10033
  }).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', {
10027
10034
  type: [
@@ -10092,7 +10099,7 @@ function initNodeEnv(command) {
10092
10099
  }
10093
10100
  function showGreeting() {
10094
10101
  let { npm_execpath, npm_lifecycle_event, NODE_RUN_SCRIPT_NAME } = process.env, isBun = npm_execpath?.includes('.bun');
10095
- src_logger.greet(`${'npx' === npm_lifecycle_event || isBun || NODE_RUN_SCRIPT_NAME ? '\n' : ''}Rsbuild v2.1.0-beta.0\n`);
10102
+ src_logger.greet(`${'npx' === npm_lifecycle_event || isBun || NODE_RUN_SCRIPT_NAME ? '\n' : ''}Rsbuild v2.1.0\n`);
10096
10103
  }
10097
10104
  function setupLogLevel() {
10098
10105
  if (cli_argv.length <= 3) return;
@@ -10114,5 +10121,5 @@ function runCLI() {
10114
10121
  src_logger.error('Failed to start Rsbuild CLI.'), src_logger.error(err), process.exit(1);
10115
10122
  }
10116
10123
  }
10117
- let src_version = "2.1.0-beta.0";
10124
+ let src_version = "2.1.0";
10118
10125
  export { PLUGIN_CSS_NAME, PLUGIN_SWC_NAME, core_rspack as rspack, createRsbuild, defaultAllowedOrigins, defineConfig, ensureAssetPrefix, loadConfig_loadConfig as loadConfig, loadEnv, logger_createLogger as createLogger, mergeRsbuildConfig, mrmime_lookup, runCLI, src_logger as logger, src_version as version };