@rsbuild/core 0.4.7 → 0.4.8
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/cli/commands.js
CHANGED
|
@@ -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.4.
|
|
42
|
+
import_commander.program.name("rsbuild").usage("<command> [options]").version("0.4.8");
|
|
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");
|
package/dist/cli/prepare.js
CHANGED
|
@@ -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.4.
|
|
37
|
+
import_rslog.logger.greet(` ${`Rsbuild v${"0.4.8"}`}
|
|
38
38
|
`);
|
|
39
39
|
}
|
|
40
40
|
// Annotate the CommonJS export names for ESM import in node:
|
package/dist/index.js
CHANGED
|
@@ -37,7 +37,7 @@ var import_createRsbuild = require("./createRsbuild");
|
|
|
37
37
|
var import_config = require("./config");
|
|
38
38
|
var import_shared = require("@rsbuild/shared");
|
|
39
39
|
var import_constants = require("./constants");
|
|
40
|
-
const version = "0.4.
|
|
40
|
+
const version = "0.4.8";
|
|
41
41
|
// Annotate the CommonJS export names for ESM import in node:
|
|
42
42
|
0 && (module.exports = {
|
|
43
43
|
PLUGIN_CSS_NAME,
|
|
@@ -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.4.
|
|
47
|
+
version: "0.4.8",
|
|
48
48
|
rootPath,
|
|
49
49
|
distPath,
|
|
50
50
|
cachePath,
|
|
@@ -52,10 +52,12 @@ class HtmlCrossOriginPlugin {
|
|
|
52
52
|
assetTags: { scripts, styles }
|
|
53
53
|
} = alterAssetTags;
|
|
54
54
|
scripts.forEach((script) => {
|
|
55
|
-
|
|
55
|
+
var _a;
|
|
56
|
+
(_a = script.attributes).crossorigin ?? (_a.crossorigin = this.crossOrigin);
|
|
56
57
|
});
|
|
57
58
|
styles.forEach((style) => {
|
|
58
|
-
|
|
59
|
+
var _a;
|
|
60
|
+
(_a = style.attributes).crossorigin ?? (_a.crossorigin = this.crossOrigin);
|
|
59
61
|
});
|
|
60
62
|
return alterAssetTags;
|
|
61
63
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rsbuild/core",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.8",
|
|
4
4
|
"description": "The Rspack-based build tool.",
|
|
5
5
|
"homepage": "https://rsbuild.dev",
|
|
6
6
|
"bugs": {
|
|
@@ -52,12 +52,12 @@
|
|
|
52
52
|
"types.d.ts"
|
|
53
53
|
],
|
|
54
54
|
"dependencies": {
|
|
55
|
-
"@rspack/core": "0.5.
|
|
55
|
+
"@rspack/core": "0.5.5",
|
|
56
56
|
"@swc/helpers": "0.5.3",
|
|
57
57
|
"core-js": "~3.32.2",
|
|
58
|
-
"html-webpack-plugin": "npm:html-rspack-plugin@5.6.
|
|
58
|
+
"html-webpack-plugin": "npm:html-rspack-plugin@5.6.1",
|
|
59
59
|
"postcss": "^8.4.33",
|
|
60
|
-
"@rsbuild/shared": "0.4.
|
|
60
|
+
"@rsbuild/shared": "0.4.8"
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
63
63
|
"@types/node": "16.x",
|