@rsbuild/plugin-assets-retry 1.0.0-alpha.7 → 1.0.0-alpha.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/AssetsRetryPlugin.d.ts +3 -4
- package/dist/index.cjs +1 -1
- package/dist/index.js +4 -2
- package/package.json +3 -4
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { type Rspack } from '@rsbuild/core';
|
|
2
|
-
import type HtmlWebpackPlugin from 'html-rspack-plugin';
|
|
1
|
+
import { type HtmlRspackPlugin, type Rspack } from '@rsbuild/core';
|
|
3
2
|
import type { PluginAssetsRetryOptions } from './types';
|
|
4
3
|
export declare class AssetsRetryPlugin implements Rspack.RspackPluginInstance {
|
|
5
4
|
#private;
|
|
@@ -7,11 +6,11 @@ export declare class AssetsRetryPlugin implements Rspack.RspackPluginInstance {
|
|
|
7
6
|
readonly distDir: string;
|
|
8
7
|
readonly inlineScript: boolean;
|
|
9
8
|
readonly minify?: boolean;
|
|
10
|
-
readonly HtmlPlugin: typeof
|
|
9
|
+
readonly HtmlPlugin: typeof HtmlRspackPlugin;
|
|
11
10
|
scriptPath: string;
|
|
12
11
|
constructor(options: PluginAssetsRetryOptions & {
|
|
13
12
|
distDir: string;
|
|
14
|
-
HtmlPlugin: typeof
|
|
13
|
+
HtmlPlugin: typeof HtmlRspackPlugin;
|
|
15
14
|
});
|
|
16
15
|
getRetryCode(): Promise<string>;
|
|
17
16
|
getScriptPath(): Promise<string>;
|
package/dist/index.cjs
CHANGED
|
@@ -106,7 +106,7 @@ var init_AssetsRetryPlugin = __esm({
|
|
|
106
106
|
if (!this.scriptPath) {
|
|
107
107
|
this.scriptPath = import_node_path.default.posix.join(
|
|
108
108
|
this.distDir,
|
|
109
|
-
`assets-retry.${"1.0.0-alpha.
|
|
109
|
+
`assets-retry.${"1.0.0-alpha.8"}.js`
|
|
110
110
|
);
|
|
111
111
|
}
|
|
112
112
|
return this.scriptPath;
|
package/dist/index.js
CHANGED
|
@@ -54,7 +54,9 @@ __export(AssetsRetryPlugin_exports, {
|
|
|
54
54
|
});
|
|
55
55
|
import fs from "fs";
|
|
56
56
|
import path2 from "path";
|
|
57
|
-
import {
|
|
57
|
+
import {
|
|
58
|
+
ensureAssetPrefix
|
|
59
|
+
} from "@rsbuild/core";
|
|
58
60
|
var _retryOptions, AssetsRetryPlugin;
|
|
59
61
|
var init_AssetsRetryPlugin = __esm({
|
|
60
62
|
"src/AssetsRetryPlugin.ts"() {
|
|
@@ -101,7 +103,7 @@ var init_AssetsRetryPlugin = __esm({
|
|
|
101
103
|
if (!this.scriptPath) {
|
|
102
104
|
this.scriptPath = path2.posix.join(
|
|
103
105
|
this.distDir,
|
|
104
|
-
`assets-retry.${"1.0.0-alpha.
|
|
106
|
+
`assets-retry.${"1.0.0-alpha.8"}.js`
|
|
105
107
|
);
|
|
106
108
|
}
|
|
107
109
|
return this.scriptPath;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rsbuild/plugin-assets-retry",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.8",
|
|
4
4
|
"description": "Assets retry plugin for Rsbuild",
|
|
5
5
|
"homepage": "https://rsbuild.dev",
|
|
6
6
|
"repository": {
|
|
@@ -30,13 +30,12 @@
|
|
|
30
30
|
"@babel/preset-env": "^7.24.7",
|
|
31
31
|
"@babel/preset-typescript": "^7.24.7",
|
|
32
32
|
"@types/serialize-javascript": "^5.0.4",
|
|
33
|
-
"html-rspack-plugin": "6.0.0-beta.5",
|
|
34
33
|
"terser": "5.31.1",
|
|
35
34
|
"typescript": "^5.5.2",
|
|
36
|
-
"@rsbuild/core": "1.0.0-alpha.
|
|
35
|
+
"@rsbuild/core": "1.0.0-alpha.8"
|
|
37
36
|
},
|
|
38
37
|
"peerDependencies": {
|
|
39
|
-
"@rsbuild/core": "^1.0.0-alpha.
|
|
38
|
+
"@rsbuild/core": "^1.0.0-alpha.8"
|
|
40
39
|
},
|
|
41
40
|
"publishConfig": {
|
|
42
41
|
"access": "public",
|