@rsbuild/plugin-assets-retry 0.7.5 → 0.7.7
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/index.cjs +5 -2
- package/dist/index.d.ts +2 -1
- package/dist/index.js +4 -2
- package/package.json +8 -8
package/dist/index.cjs
CHANGED
|
@@ -105,7 +105,7 @@ var init_AssetsRetryPlugin = __esm({
|
|
|
105
105
|
if (!this.scriptPath) {
|
|
106
106
|
this.scriptPath = import_node_path.default.posix.join(
|
|
107
107
|
this.distDir,
|
|
108
|
-
`assets-retry.${"0.7.
|
|
108
|
+
`assets-retry.${"0.7.7"}.js`
|
|
109
109
|
);
|
|
110
110
|
}
|
|
111
111
|
return this.scriptPath;
|
|
@@ -254,12 +254,14 @@ var init_AsyncChunkRetryPlugin = __esm({
|
|
|
254
254
|
// src/index.ts
|
|
255
255
|
var src_exports = {};
|
|
256
256
|
__export(src_exports, {
|
|
257
|
+
PLUGIN_ASSETS_RETRY_NAME: () => PLUGIN_ASSETS_RETRY_NAME,
|
|
257
258
|
pluginAssetsRetry: () => pluginAssetsRetry
|
|
258
259
|
});
|
|
259
260
|
module.exports = __toCommonJS(src_exports);
|
|
260
261
|
var import_shared3 = require("@rsbuild/shared");
|
|
262
|
+
var PLUGIN_ASSETS_RETRY_NAME = "rsbuild:assets-retry";
|
|
261
263
|
var pluginAssetsRetry = (options = {}) => ({
|
|
262
|
-
name:
|
|
264
|
+
name: PLUGIN_ASSETS_RETRY_NAME,
|
|
263
265
|
setup(api) {
|
|
264
266
|
api.modifyBundlerChain(
|
|
265
267
|
async (chain, { CHAIN_ID, target, HtmlPlugin, isProd }) => {
|
|
@@ -292,5 +294,6 @@ var pluginAssetsRetry = (options = {}) => ({
|
|
|
292
294
|
});
|
|
293
295
|
// Annotate the CommonJS export names for ESM import in node:
|
|
294
296
|
0 && (module.exports = {
|
|
297
|
+
PLUGIN_ASSETS_RETRY_NAME,
|
|
295
298
|
pluginAssetsRetry
|
|
296
299
|
});
|
package/dist/index.d.ts
CHANGED
|
@@ -65,6 +65,7 @@ type AssetsRetryHookContext = {
|
|
|
65
65
|
tagName: string;
|
|
66
66
|
};
|
|
67
67
|
|
|
68
|
+
declare const PLUGIN_ASSETS_RETRY_NAME = "rsbuild:assets-retry";
|
|
68
69
|
declare const pluginAssetsRetry: (options?: PluginAssetsRetryOptions) => RsbuildPlugin;
|
|
69
70
|
|
|
70
|
-
export { type PluginAssetsRetryOptions, pluginAssetsRetry };
|
|
71
|
+
export { PLUGIN_ASSETS_RETRY_NAME, type PluginAssetsRetryOptions, pluginAssetsRetry };
|
package/dist/index.js
CHANGED
|
@@ -105,7 +105,7 @@ var init_AssetsRetryPlugin = __esm({
|
|
|
105
105
|
if (!this.scriptPath) {
|
|
106
106
|
this.scriptPath = path2.posix.join(
|
|
107
107
|
this.distDir,
|
|
108
|
-
`assets-retry.${"0.7.
|
|
108
|
+
`assets-retry.${"0.7.7"}.js`
|
|
109
109
|
);
|
|
110
110
|
}
|
|
111
111
|
return this.scriptPath;
|
|
@@ -255,8 +255,9 @@ var init_AsyncChunkRetryPlugin = __esm({
|
|
|
255
255
|
// src/index.ts
|
|
256
256
|
init_esm();
|
|
257
257
|
import { getDistPath, isHtmlDisabled } from "@rsbuild/shared";
|
|
258
|
+
var PLUGIN_ASSETS_RETRY_NAME = "rsbuild:assets-retry";
|
|
258
259
|
var pluginAssetsRetry = (options = {}) => ({
|
|
259
|
-
name:
|
|
260
|
+
name: PLUGIN_ASSETS_RETRY_NAME,
|
|
260
261
|
setup(api) {
|
|
261
262
|
api.modifyBundlerChain(
|
|
262
263
|
async (chain, { CHAIN_ID, target, HtmlPlugin, isProd }) => {
|
|
@@ -288,5 +289,6 @@ var pluginAssetsRetry = (options = {}) => ({
|
|
|
288
289
|
}
|
|
289
290
|
});
|
|
290
291
|
export {
|
|
292
|
+
PLUGIN_ASSETS_RETRY_NAME,
|
|
291
293
|
pluginAssetsRetry
|
|
292
294
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rsbuild/plugin-assets-retry",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.7",
|
|
4
4
|
"description": "Assets retry plugin for Rsbuild",
|
|
5
5
|
"homepage": "https://rsbuild.dev",
|
|
6
6
|
"repository": {
|
|
@@ -24,20 +24,20 @@
|
|
|
24
24
|
],
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"serialize-javascript": "^6.0.2",
|
|
27
|
-
"@rsbuild/shared": "0.7.
|
|
27
|
+
"@rsbuild/shared": "0.7.7"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"@babel/core": "^7.24.
|
|
31
|
-
"@babel/preset-env": "^7.24.
|
|
32
|
-
"@babel/preset-typescript": "^7.24.
|
|
30
|
+
"@babel/core": "^7.24.7",
|
|
31
|
+
"@babel/preset-env": "^7.24.7",
|
|
32
|
+
"@babel/preset-typescript": "^7.24.7",
|
|
33
33
|
"@types/serialize-javascript": "^5.0.4",
|
|
34
34
|
"html-webpack-plugin": "npm:html-rspack-plugin@5.7.2",
|
|
35
|
-
"terser": "5.31.
|
|
35
|
+
"terser": "5.31.1",
|
|
36
36
|
"typescript": "^5.4.2",
|
|
37
|
-
"@rsbuild/core": "0.7.
|
|
37
|
+
"@rsbuild/core": "0.7.7"
|
|
38
38
|
},
|
|
39
39
|
"peerDependencies": {
|
|
40
|
-
"@rsbuild/core": "^0.7.
|
|
40
|
+
"@rsbuild/core": "^0.7.7"
|
|
41
41
|
},
|
|
42
42
|
"publishConfig": {
|
|
43
43
|
"access": "public",
|