@rsbuild/core 0.1.3 → 0.1.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.
- package/dist/cli/commands.d.ts +2 -0
- package/dist/cli/commands.js +30 -3
- package/dist/cli/config.d.ts +1 -1
- package/dist/cli/config.js +13 -9
- package/dist/cli/prepare.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +3 -1
- package/dist/loadEnv.d.ts +8 -2
- package/dist/loadEnv.js +22 -10
- package/dist/plugins/html.js +6 -6
- package/dist/plugins/inlineChunk.js +2 -6
- package/dist/plugins/networkPerformance.js +13 -3
- package/dist/plugins/preloadOrPrefetch.js +13 -3
- package/dist/rspack-plugins/HtmlAppIconPlugin.d.ts +16 -0
- package/dist/rspack-plugins/HtmlAppIconPlugin.js +97 -0
- package/dist/rspack-plugins/HtmlCrossOriginPlugin.d.ts +15 -0
- package/dist/rspack-plugins/HtmlCrossOriginPlugin.js +59 -0
- package/dist/rspack-plugins/HtmlNetworkPerformancePlugin.d.ts +12 -0
- package/dist/rspack-plugins/HtmlNetworkPerformancePlugin.js +72 -0
- package/dist/rspack-plugins/HtmlNoncePlugin.d.ts +14 -0
- package/dist/rspack-plugins/HtmlNoncePlugin.js +52 -0
- package/dist/rspack-plugins/HtmlPreloadOrPrefetchPlugin/helpers/determineAsValue.d.ts +25 -0
- package/dist/rspack-plugins/HtmlPreloadOrPrefetchPlugin/helpers/determineAsValue.js +99 -0
- package/dist/rspack-plugins/HtmlPreloadOrPrefetchPlugin/helpers/doesChunkBelongToHtml.d.ts +31 -0
- package/dist/rspack-plugins/HtmlPreloadOrPrefetchPlugin/helpers/doesChunkBelongToHtml.js +75 -0
- package/dist/rspack-plugins/HtmlPreloadOrPrefetchPlugin/helpers/extractChunks.d.ts +28 -0
- package/dist/rspack-plugins/HtmlPreloadOrPrefetchPlugin/helpers/extractChunks.js +83 -0
- package/dist/rspack-plugins/HtmlPreloadOrPrefetchPlugin/helpers/index.d.ts +4 -0
- package/dist/rspack-plugins/HtmlPreloadOrPrefetchPlugin/helpers/index.js +28 -0
- package/dist/rspack-plugins/HtmlPreloadOrPrefetchPlugin/helpers/type.d.ts +13 -0
- package/dist/rspack-plugins/HtmlPreloadOrPrefetchPlugin/helpers/type.js +16 -0
- package/dist/rspack-plugins/HtmlPreloadOrPrefetchPlugin/index.d.ts +30 -0
- package/dist/rspack-plugins/HtmlPreloadOrPrefetchPlugin/index.js +167 -0
- package/dist/rspack-plugins/HtmlTagsPlugin.d.ts +30 -0
- package/dist/rspack-plugins/HtmlTagsPlugin.js +173 -0
- package/dist/rspack-plugins/InlineChunkHtmlPlugin.d.ts +57 -0
- package/dist/rspack-plugins/InlineChunkHtmlPlugin.js +182 -0
- package/dist/rspack-provider/core/createContext.js +7 -3
- package/dist/server/devServer.d.ts +0 -1
- package/dist/server/devServer.js +0 -2
- package/dist/server/prodServer.d.ts +0 -1
- package/dist/server/prodServer.js +1 -6
- package/package.json +5 -4
|
@@ -134,17 +134,12 @@ class RsbuildProdServer {
|
|
|
134
134
|
this.app.close();
|
|
135
135
|
}
|
|
136
136
|
}
|
|
137
|
-
async function startProdServer(context, rsbuildConfig, {
|
|
138
|
-
printURLs = true,
|
|
139
|
-
strictPort = false,
|
|
140
|
-
getPortSilently
|
|
141
|
-
} = {}) {
|
|
137
|
+
async function startProdServer(context, rsbuildConfig, { printURLs = true, getPortSilently } = {}) {
|
|
142
138
|
if (!process.env.NODE_ENV) {
|
|
143
139
|
process.env.NODE_ENV = "production";
|
|
144
140
|
}
|
|
145
141
|
const { serverConfig, port, host, https } = await (0, import_shared.getServerOptions)({
|
|
146
142
|
rsbuildConfig,
|
|
147
|
-
strictPort,
|
|
148
143
|
getPortSilently
|
|
149
144
|
});
|
|
150
145
|
const server = new RsbuildProdServer({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rsbuild/core",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.5",
|
|
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": {
|
|
@@ -58,17 +58,18 @@
|
|
|
58
58
|
"types.d.ts"
|
|
59
59
|
],
|
|
60
60
|
"dependencies": {
|
|
61
|
-
"@rspack/core": "0.4.
|
|
61
|
+
"@rspack/core": "0.4.1",
|
|
62
62
|
"core-js": "~3.32.2",
|
|
63
63
|
"html-webpack-plugin": "npm:html-rspack-plugin@5.5.7",
|
|
64
64
|
"postcss": "8.4.31",
|
|
65
65
|
"semver": "^7.5.4",
|
|
66
|
-
"@rsbuild/shared": "0.1.
|
|
66
|
+
"@rsbuild/shared": "0.1.5"
|
|
67
67
|
},
|
|
68
68
|
"devDependencies": {
|
|
69
69
|
"@types/node": "^16",
|
|
70
70
|
"@types/semver": "^7.5.4",
|
|
71
|
-
"typescript": "^5.3.0"
|
|
71
|
+
"typescript": "^5.3.0",
|
|
72
|
+
"webpack": "^5.89.0"
|
|
72
73
|
},
|
|
73
74
|
"engines": {
|
|
74
75
|
"node": ">=14.0.0"
|