@rsbuild/plugin-assets-retry 0.0.21 → 0.0.22
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.js +2 -2
- package/dist/index.mjs +2 -2
- package/package.json +4 -5
package/dist/index.js
CHANGED
|
@@ -58,7 +58,7 @@ var init_AssetsRetryPlugin = __esm({
|
|
|
58
58
|
"src/AssetsRetryPlugin.ts"() {
|
|
59
59
|
"use strict";
|
|
60
60
|
import_path = __toESM(require("path"));
|
|
61
|
-
import_webpack_sources = require("webpack-sources");
|
|
61
|
+
import_webpack_sources = __toESM(require("@rsbuild/shared/webpack-sources"));
|
|
62
62
|
import_shared = require("@rsbuild/shared");
|
|
63
63
|
AssetsRetryPlugin = class {
|
|
64
64
|
constructor(options) {
|
|
@@ -103,7 +103,7 @@ var init_AssetsRetryPlugin = __esm({
|
|
|
103
103
|
},
|
|
104
104
|
async (assets) => {
|
|
105
105
|
const scriptPath = await this.getScriptPath();
|
|
106
|
-
assets[scriptPath] = new import_webpack_sources.RawSource(
|
|
106
|
+
assets[scriptPath] = new import_webpack_sources.default.RawSource(
|
|
107
107
|
await this.getRetryCode(),
|
|
108
108
|
false
|
|
109
109
|
);
|
package/dist/index.mjs
CHANGED
|
@@ -54,7 +54,7 @@ __export(AssetsRetryPlugin_exports, {
|
|
|
54
54
|
AssetsRetryPlugin: () => AssetsRetryPlugin
|
|
55
55
|
});
|
|
56
56
|
import path2 from "path";
|
|
57
|
-
import
|
|
57
|
+
import WebpackSources from "@rsbuild/shared/webpack-sources";
|
|
58
58
|
import {
|
|
59
59
|
fse,
|
|
60
60
|
withPublicPath,
|
|
@@ -112,7 +112,7 @@ var init_AssetsRetryPlugin = __esm({
|
|
|
112
112
|
},
|
|
113
113
|
async (assets) => {
|
|
114
114
|
const scriptPath = await this.getScriptPath();
|
|
115
|
-
assets[scriptPath] = new RawSource(
|
|
115
|
+
assets[scriptPath] = new WebpackSources.RawSource(
|
|
116
116
|
await this.getRetryCode(),
|
|
117
117
|
false
|
|
118
118
|
);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rsbuild/plugin-assets-retry",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.22",
|
|
4
4
|
"description": "Assets retry plugin for Rsbuild",
|
|
5
5
|
"homepage": "https://rsbuild.dev",
|
|
6
6
|
"repository": {
|
|
@@ -23,8 +23,7 @@
|
|
|
23
23
|
],
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"serialize-javascript": "^6.0.0",
|
|
26
|
-
"
|
|
27
|
-
"@rsbuild/shared": "0.0.21"
|
|
26
|
+
"@rsbuild/shared": "0.0.22"
|
|
28
27
|
},
|
|
29
28
|
"devDependencies": {
|
|
30
29
|
"@babel/core": "^7.23.2",
|
|
@@ -34,8 +33,8 @@
|
|
|
34
33
|
"html-webpack-plugin": "npm:html-rspack-plugin@5.5.5",
|
|
35
34
|
"terser": "5.19.2",
|
|
36
35
|
"typescript": "^5.2.2",
|
|
37
|
-
"@rsbuild/core": "0.0.
|
|
38
|
-
"@rsbuild/test-helper": "0.0.
|
|
36
|
+
"@rsbuild/core": "0.0.22",
|
|
37
|
+
"@rsbuild/test-helper": "0.0.22"
|
|
39
38
|
},
|
|
40
39
|
"publishConfig": {
|
|
41
40
|
"access": "public",
|