@rsbuild/plugin-assets-retry 0.3.3 → 0.3.4
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.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +6 -14
- package/package.json +7 -4
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
package/dist/index.mjs
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import { createRequire } from 'module';
|
|
2
|
+
var require = createRequire(import.meta['url']);
|
|
3
|
+
|
|
1
4
|
var __defProp = Object.defineProperty;
|
|
2
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
3
6
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
@@ -31,12 +34,12 @@ var __privateSet = (obj, member, value, setter) => {
|
|
|
31
34
|
return value;
|
|
32
35
|
};
|
|
33
36
|
|
|
34
|
-
// ../../node_modules/.pnpm/@modern-js+module-tools@2.
|
|
37
|
+
// ../../node_modules/.pnpm/@modern-js+module-tools@2.46.0_typescript@5.3.2/node_modules/@modern-js/module-tools/shims/esm.js
|
|
35
38
|
import { fileURLToPath } from "url";
|
|
36
39
|
import path from "path";
|
|
37
40
|
var getFilename, getDirname, __dirname;
|
|
38
41
|
var init_esm = __esm({
|
|
39
|
-
"../../node_modules/.pnpm/@modern-js+module-tools@2.
|
|
42
|
+
"../../node_modules/.pnpm/@modern-js+module-tools@2.46.0_typescript@5.3.2/node_modules/@modern-js/module-tools/shims/esm.js"() {
|
|
40
43
|
"use strict";
|
|
41
44
|
getFilename = () => fileURLToPath(import.meta.url);
|
|
42
45
|
getDirname = () => path.dirname(getFilename());
|
|
@@ -44,15 +47,6 @@ var init_esm = __esm({
|
|
|
44
47
|
}
|
|
45
48
|
});
|
|
46
49
|
|
|
47
|
-
// ../../scripts/requireShims.js
|
|
48
|
-
import { createRequire } from "module";
|
|
49
|
-
var init_requireShims = __esm({
|
|
50
|
-
"../../scripts/requireShims.js"() {
|
|
51
|
-
"use strict";
|
|
52
|
-
global.require = createRequire(import.meta.url);
|
|
53
|
-
}
|
|
54
|
-
});
|
|
55
|
-
|
|
56
50
|
// src/AssetsRetryPlugin.ts
|
|
57
51
|
var AssetsRetryPlugin_exports = {};
|
|
58
52
|
__export(AssetsRetryPlugin_exports, {
|
|
@@ -71,7 +65,6 @@ var init_AssetsRetryPlugin = __esm({
|
|
|
71
65
|
"src/AssetsRetryPlugin.ts"() {
|
|
72
66
|
"use strict";
|
|
73
67
|
init_esm();
|
|
74
|
-
init_requireShims();
|
|
75
68
|
AssetsRetryPlugin = class {
|
|
76
69
|
constructor(options) {
|
|
77
70
|
__publicField(this, "name");
|
|
@@ -105,7 +98,7 @@ var init_AssetsRetryPlugin = __esm({
|
|
|
105
98
|
if (!this.scriptPath) {
|
|
106
99
|
this.scriptPath = path2.join(
|
|
107
100
|
this.distDir,
|
|
108
|
-
`assets-retry.${"0.3.
|
|
101
|
+
`assets-retry.${"0.3.4"}.js`
|
|
109
102
|
);
|
|
110
103
|
}
|
|
111
104
|
return this.scriptPath;
|
|
@@ -164,7 +157,6 @@ var init_AssetsRetryPlugin = __esm({
|
|
|
164
157
|
|
|
165
158
|
// src/index.ts
|
|
166
159
|
init_esm();
|
|
167
|
-
init_requireShims();
|
|
168
160
|
import { getDistPath, isHtmlDisabled } from "@rsbuild/shared";
|
|
169
161
|
var pluginAssetsRetry = (options = {}) => ({
|
|
170
162
|
name: "rsbuild:assets-retry",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rsbuild/plugin-assets-retry",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.4",
|
|
4
4
|
"description": "Assets retry plugin for Rsbuild",
|
|
5
5
|
"homepage": "https://rsbuild.dev",
|
|
6
6
|
"repository": {
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
],
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"serialize-javascript": "^6.0.0",
|
|
27
|
-
"@rsbuild/shared": "0.3.
|
|
27
|
+
"@rsbuild/shared": "0.3.4"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"@babel/core": "^7.23.2",
|
|
@@ -34,8 +34,11 @@
|
|
|
34
34
|
"html-webpack-plugin": "npm:html-rspack-plugin@5.5.7",
|
|
35
35
|
"terser": "5.19.2",
|
|
36
36
|
"typescript": "^5.3.0",
|
|
37
|
-
"@rsbuild/core": "0.3.
|
|
38
|
-
"@scripts/test-helper": "
|
|
37
|
+
"@rsbuild/core": "0.3.4",
|
|
38
|
+
"@scripts/test-helper": "0.3.4"
|
|
39
|
+
},
|
|
40
|
+
"peerDependencies": {
|
|
41
|
+
"@rsbuild/core": "^0.3.4"
|
|
39
42
|
},
|
|
40
43
|
"publishConfig": {
|
|
41
44
|
"access": "public",
|