@rsbuild/plugin-assets-retry 0.1.1 → 0.1.3

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 CHANGED
@@ -86,8 +86,10 @@ var init_AssetsRetryPlugin = __esm({
86
86
  }
87
87
  async getScriptPath() {
88
88
  if (!this.scriptPath) {
89
- const version = await (0, import_shared.getRsbuildVersion)();
90
- this.scriptPath = import_path.default.join(this.distDir, `assets-retry.${version}.js`);
89
+ this.scriptPath = import_path.default.join(
90
+ this.distDir,
91
+ `assets-retry.${"0.1.3"}.js`
92
+ );
91
93
  }
92
94
  return this.scriptPath;
93
95
  }
package/dist/index.mjs CHANGED
@@ -39,10 +39,10 @@ var init_esm = __esm({
39
39
  }
40
40
  });
41
41
 
42
- // ../../scripts/require_shims.js
42
+ // ../../scripts/requireShims.js
43
43
  import { createRequire } from "module";
44
- var init_require_shims = __esm({
45
- "../../scripts/require_shims.js"() {
44
+ var init_requireShims = __esm({
45
+ "../../scripts/requireShims.js"() {
46
46
  "use strict";
47
47
  global.require = createRequire(import.meta.url);
48
48
  }
@@ -59,7 +59,6 @@ import {
59
59
  fse,
60
60
  withPublicPath,
61
61
  generateScriptTag,
62
- getRsbuildVersion,
63
62
  getPublicPathFromCompiler,
64
63
  COMPILATION_PROCESS_STAGE
65
64
  } from "@rsbuild/shared";
@@ -68,7 +67,7 @@ var init_AssetsRetryPlugin = __esm({
68
67
  "src/AssetsRetryPlugin.ts"() {
69
68
  "use strict";
70
69
  init_esm();
71
- init_require_shims();
70
+ init_requireShims();
72
71
  AssetsRetryPlugin = class {
73
72
  constructor(options) {
74
73
  __privateAdd(this, _retryOptions, void 0);
@@ -95,8 +94,10 @@ var init_AssetsRetryPlugin = __esm({
95
94
  }
96
95
  async getScriptPath() {
97
96
  if (!this.scriptPath) {
98
- const version = await getRsbuildVersion();
99
- this.scriptPath = path2.join(this.distDir, `assets-retry.${version}.js`);
97
+ this.scriptPath = path2.join(
98
+ this.distDir,
99
+ `assets-retry.${"0.1.3"}.js`
100
+ );
100
101
  }
101
102
  return this.scriptPath;
102
103
  }
@@ -154,7 +155,7 @@ var init_AssetsRetryPlugin = __esm({
154
155
 
155
156
  // src/index.ts
156
157
  init_esm();
157
- init_require_shims();
158
+ init_requireShims();
158
159
  import { getDistPath, isHtmlDisabled } from "@rsbuild/shared";
159
160
  var pluginAssetsRetry = (options = {}) => ({
160
161
  name: "rsbuild:assets-retry",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rsbuild/plugin-assets-retry",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "description": "Assets retry plugin for Rsbuild",
5
5
  "homepage": "https://rsbuild.dev",
6
6
  "repository": {
@@ -23,7 +23,7 @@
23
23
  ],
24
24
  "dependencies": {
25
25
  "serialize-javascript": "^6.0.0",
26
- "@rsbuild/shared": "0.1.1"
26
+ "@rsbuild/shared": "0.1.3"
27
27
  },
28
28
  "devDependencies": {
29
29
  "@babel/core": "^7.23.2",
@@ -33,8 +33,8 @@
33
33
  "html-webpack-plugin": "npm:html-rspack-plugin@5.5.7",
34
34
  "terser": "5.19.2",
35
35
  "typescript": "^5.3.0",
36
- "@rsbuild/core": "0.1.1",
37
- "@rsbuild/test-helper": "0.1.1"
36
+ "@rsbuild/core": "0.1.3",
37
+ "@rsbuild/test-helper": "0.1.3"
38
38
  },
39
39
  "publishConfig": {
40
40
  "access": "public",