@rsbuild/core 0.6.4 → 0.6.5

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.
@@ -39,7 +39,7 @@ const applyServerOptions = (command) => {
39
39
  command.option("-o --open [url]", "open the page in browser on startup").option("--port <port>", "specify a port number for server to listen").option("--host <host>", "specify the host that the server listens to");
40
40
  };
41
41
  function runCli() {
42
- import_commander.program.name("rsbuild").usage("<command> [options]").version("0.6.4");
42
+ import_commander.program.name("rsbuild").usage("<command> [options]").version("0.6.5");
43
43
  const devCommand = import_commander.program.command("dev");
44
44
  const buildCommand = import_commander.program.command("build");
45
45
  const previewCommand = import_commander.program.command("preview");
@@ -34,7 +34,7 @@ function prepareCli() {
34
34
  if (!npm_execpath || npm_execpath.includes("npx-cli.js") || npm_execpath.includes(".bun")) {
35
35
  console.log();
36
36
  }
37
- import_rslog.logger.greet(` ${`Rsbuild v${"0.6.4"}`}
37
+ import_rslog.logger.greet(` ${`Rsbuild v${"0.6.5"}`}
38
38
  `);
39
39
  }
40
40
  // Annotate the CommonJS export names for ESM import in node:
@@ -44,7 +44,7 @@ async function createContextByConfig(options, bundlerType, config = {}) {
44
44
  const context = {
45
45
  entry: (0, import_entry.getEntryObject)(config, "web"),
46
46
  targets: config.output?.targets || [],
47
- version: "0.6.4",
47
+ version: "0.6.5",
48
48
  rootPath,
49
49
  distPath,
50
50
  cachePath,
package/dist/index.js CHANGED
@@ -38,7 +38,7 @@ var import_config = require("./config");
38
38
  var import_shared = require("@rsbuild/shared");
39
39
  var import_mergeConfig = require("./mergeConfig");
40
40
  var import_constants = require("./constants");
41
- const version = "0.6.4";
41
+ const version = "0.6.5";
42
42
  // Annotate the CommonJS export names for ESM import in node:
43
43
  0 && (module.exports = {
44
44
  PLUGIN_CSS_NAME,
@@ -49,6 +49,7 @@ const pluginBasic = () => ({
49
49
  level: "error"
50
50
  }
51
51
  });
52
+ chain.ignoreWarnings([/Conflicting order/]);
52
53
  chain.performance.hints(false);
53
54
  chain.module.parser.merge({
54
55
  javascript: {
@@ -99,7 +99,8 @@ function pluginStartUrl() {
99
99
  const config = api.getNormalizedConfig();
100
100
  const { startUrl, beforeStartUrl } = config.dev;
101
101
  const { https } = api.context.devServer || {};
102
- const shouldOpen = Boolean(startUrl);
102
+ const isCodesandbox = process.env.CSB === "true";
103
+ const shouldOpen = Boolean(startUrl) && !isCodesandbox;
103
104
  if (!shouldOpen) {
104
105
  return;
105
106
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rsbuild/core",
3
- "version": "0.6.4",
3
+ "version": "0.6.5",
4
4
  "description": "The Rspack-based build tool.",
5
5
  "homepage": "https://rsbuild.dev",
6
6
  "bugs": {
@@ -53,7 +53,7 @@
53
53
  "core-js": "~3.36.0",
54
54
  "html-webpack-plugin": "npm:html-rspack-plugin@5.6.2",
55
55
  "postcss": "^8.4.38",
56
- "@rsbuild/shared": "0.6.4"
56
+ "@rsbuild/shared": "0.6.5"
57
57
  },
58
58
  "devDependencies": {
59
59
  "@types/node": "16.x",