@rslib/core 0.5.5 → 0.6.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.
Files changed (2) hide show
  1. package/dist/index.js +9 -13
  2. package/package.json +5 -5
package/dist/index.js CHANGED
@@ -184,7 +184,7 @@ function prepareCli() {
184
184
  initNodeEnv();
185
185
  const { npm_execpath } = process.env;
186
186
  if (!npm_execpath || npm_execpath.includes('npx-cli.js') || npm_execpath.includes('.bun')) console.log();
187
- __WEBPACK_EXTERNAL_MODULE__compiled_rslog_index_js_c302f6e3__.logger.greet(` Rslib v0.5.5\n`);
187
+ __WEBPACK_EXTERNAL_MODULE__compiled_rslog_index_js_c302f6e3__.logger.greet(` Rslib v0.6.0\n`);
188
188
  }
189
189
  const DEFAULT_CONFIG_NAME = 'rslib.config';
190
190
  const DEFAULT_CONFIG_EXTENSIONS = [
@@ -552,15 +552,11 @@ class EntryChunkPlugin {
552
552
  this.contextToWatch = contextToWatch;
553
553
  }
554
554
  apply(compiler) {
555
- compiler.hooks.afterCompile.tapPromise(EntryChunkPlugin_PLUGIN_NAME, (compilation)=>new Promise((resolve)=>{
556
- if (null === this.contextToWatch) {
557
- resolve();
558
- return;
559
- }
560
- const contextDep = compilation.contextDependencies;
561
- if (!contextDep.has(this.contextToWatch)) contextDep.add(this.contextToWatch);
562
- resolve();
563
- }));
555
+ compiler.hooks.afterCompile.tap(EntryChunkPlugin_PLUGIN_NAME, (compilation)=>{
556
+ if (null === this.contextToWatch) return;
557
+ const contextDep = compilation.contextDependencies;
558
+ if (!contextDep.has(this.contextToWatch)) contextDep.add(this.contextToWatch);
559
+ });
564
560
  compiler.hooks.make.tap(EntryChunkPlugin_PLUGIN_NAME, (compilation)=>{
565
561
  const entries = {};
566
562
  for (const [key, value] of compilation.entries){
@@ -1746,7 +1742,7 @@ const composeFormatConfig = ({ format, bundle = true, umdName, pkgJson })=>{
1746
1742
  iife: false,
1747
1743
  chunkFormat: 'commonjs',
1748
1744
  library: {
1749
- type: 'commonjs'
1745
+ type: 'commonjs-static'
1750
1746
  },
1751
1747
  chunkLoading: 'require',
1752
1748
  workerChunkLoading: 'async-node',
@@ -2481,7 +2477,7 @@ const repeatableOption = (value, previous)=>(previous ?? []).concat([
2481
2477
  value
2482
2478
  ]);
2483
2479
  function runCli() {
2484
- __WEBPACK_EXTERNAL_MODULE__compiled_commander_index_js_bca3ceaa__.program.name('rslib').usage('<command> [options]').version("0.5.5");
2480
+ __WEBPACK_EXTERNAL_MODULE__compiled_commander_index_js_bca3ceaa__.program.name('rslib').usage('<command> [options]').version("0.6.0");
2485
2481
  const buildCommand = __WEBPACK_EXTERNAL_MODULE__compiled_commander_index_js_bca3ceaa__.program.command('build');
2486
2482
  const inspectCommand = __WEBPACK_EXTERNAL_MODULE__compiled_commander_index_js_bca3ceaa__.program.command('inspect');
2487
2483
  const mfDevCommand = __WEBPACK_EXTERNAL_MODULE__compiled_commander_index_js_bca3ceaa__.program.command('mf-dev');
@@ -2542,6 +2538,6 @@ function runCli() {
2542
2538
  });
2543
2539
  __WEBPACK_EXTERNAL_MODULE__compiled_commander_index_js_bca3ceaa__.program.parse();
2544
2540
  }
2545
- const src_rslib_entry_version = "0.5.5";
2541
+ const src_rslib_entry_version = "0.6.0";
2546
2542
  var __webpack_exports__logger = __WEBPACK_EXTERNAL_MODULE__compiled_rslog_index_js_c302f6e3__.logger;
2547
2543
  export { build, defineConfig, inspect, loadConfig, prepareCli, runCli, startMFDevServer, composeCreateRsbuildConfig as unstable_composeCreateRsbuildConfig, src_rslib_entry_version as version, __webpack_exports__logger as logger };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rslib/core",
3
- "version": "0.5.5",
3
+ "version": "0.6.0",
4
4
  "description": "The Rsbuild-based library development tool.",
5
5
  "homepage": "https://lib.rsbuild.dev",
6
6
  "bugs": {
@@ -36,12 +36,12 @@
36
36
  "types.d.ts"
37
37
  ],
38
38
  "dependencies": {
39
- "@rsbuild/core": "~1.2.19",
39
+ "@rsbuild/core": "1.3.0-beta.3",
40
40
  "tinyglobby": "^0.2.12",
41
- "rsbuild-plugin-dts": "0.5.5"
41
+ "rsbuild-plugin-dts": "0.6.0"
42
42
  },
43
43
  "devDependencies": {
44
- "@module-federation/rsbuild-plugin": "^0.11.1",
44
+ "@module-federation/rsbuild-plugin": "^0.11.2",
45
45
  "@types/fs-extra": "^11.0.4",
46
46
  "chokidar": "^4.0.3",
47
47
  "commander": "^13.1.0",
@@ -50,7 +50,7 @@
50
50
  "picocolors": "1.1.1",
51
51
  "prebundle": "1.2.7",
52
52
  "rsbuild-plugin-publint": "^0.3.0",
53
- "rslib": "npm:@rslib/core@0.5.4",
53
+ "rslib": "npm:@rslib/core@0.5.5",
54
54
  "rslog": "^1.2.3",
55
55
  "tsconfck": "3.1.5",
56
56
  "typescript": "^5.8.2",