@rsbuild/core 0.2.5 → 0.2.6

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.
@@ -83,7 +83,7 @@ async function init({
83
83
  }
84
84
  }
85
85
  function runCli() {
86
- import_commander.program.name("rsbuild").usage("<command> [options]").version("0.2.5");
86
+ import_commander.program.name("rsbuild").usage("<command> [options]").version("0.2.6");
87
87
  import_commander.program.command("dev").option("--open", "open the page in browser on startup").option(
88
88
  "--port <port>",
89
89
  "specify a port number for Rsbuild Server to listen"
@@ -34,7 +34,7 @@ function prepareCli() {
34
34
  if (!npm_execpath || npm_execpath.includes("npx-cli.js")) {
35
35
  console.log();
36
36
  }
37
- import_rslog.logger.greet(` ${`Rsbuild v${"0.2.5"}`}
37
+ import_rslog.logger.greet(` ${`Rsbuild v${"0.2.6"}`}
38
38
  `);
39
39
  }
40
40
  // Annotate the CommonJS export names for ESM import in node:
@@ -98,7 +98,7 @@ function splitByModule(ctx) {
98
98
  vendors: {
99
99
  priority: -10,
100
100
  test: import_shared.NODE_MODULES_REGEX,
101
- // todo: not support in rspack
101
+ // TODO: not support in rspack
102
102
  // @ts-expect-error
103
103
  name(module2) {
104
104
  return (0, import_shared.getPackageNameFromModulePath)(module2.context);
@@ -72,11 +72,10 @@ async function openBrowser(url) {
72
72
  );
73
73
  return true;
74
74
  }
75
- return false;
75
+ import_shared.logger.debug("Failed to find the target browser.");
76
76
  } catch (err) {
77
- import_shared.logger.error("Failed to open start URL with apple script.");
78
- import_shared.logger.error(err);
79
- return false;
77
+ import_shared.logger.debug("Failed to open start URL with apple script.");
78
+ import_shared.logger.debug(err);
80
79
  }
81
80
  }
82
81
  try {
@@ -33,7 +33,7 @@ const pluginWasm = () => ({
33
33
  ...chain.get("experiments"),
34
34
  asyncWebAssembly: true
35
35
  });
36
- const wasmFilename = (0, import_path.join)(distPath, "[hash].module.wasm");
36
+ const wasmFilename = import_path.posix.join(distPath, "[hash].module.wasm");
37
37
  chain.output.merge({
38
38
  webassemblyModuleFilename: wasmFilename
39
39
  });
@@ -57,7 +57,7 @@ async function createCompiler({
57
57
  let isCompiling = false;
58
58
  const logRspackVersion = () => {
59
59
  if (!isVersionLogged) {
60
- import_shared.logger.start(`Use Rspack v${rspack.rspackVersion}`);
60
+ import_shared.logger.debug(`Use Rspack v${rspack.rspackVersion}`);
61
61
  isVersionLogged = true;
62
62
  }
63
63
  };
@@ -59,7 +59,7 @@ function createContextByConfig(options, bundlerType, config = {}) {
59
59
  const context = {
60
60
  entry: config.source?.entry || getDefaultEntry(rootPath),
61
61
  targets: config.output?.targets || [],
62
- version: "0.2.5",
62
+ version: "0.2.6",
63
63
  rootPath,
64
64
  distPath,
65
65
  cachePath,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rsbuild/core",
3
- "version": "0.2.5",
3
+ "version": "0.2.6",
4
4
  "description": "Unleash the power of Rspack with the out-of-the-box build tool.",
5
5
  "homepage": "https://rsbuild.dev",
6
6
  "bugs": {
@@ -60,7 +60,7 @@
60
60
  "core-js": "~3.32.2",
61
61
  "html-webpack-plugin": "npm:html-rspack-plugin@5.5.7",
62
62
  "postcss": "8.4.31",
63
- "@rsbuild/shared": "0.2.5"
63
+ "@rsbuild/shared": "0.2.6"
64
64
  },
65
65
  "devDependencies": {
66
66
  "@types/node": "16.x",