@rsbuild/plugin-assets-retry 0.1.8 → 0.2.0

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
@@ -88,7 +88,7 @@ var init_AssetsRetryPlugin = __esm({
88
88
  if (!this.scriptPath) {
89
89
  this.scriptPath = import_path.default.join(
90
90
  this.distDir,
91
- `assets-retry.${"0.1.8"}.js`
91
+ `assets-retry.${"0.2.0"}.js`
92
92
  );
93
93
  }
94
94
  return this.scriptPath;
@@ -161,7 +161,7 @@ var pluginAssetsRetry = (options = {}) => ({
161
161
  return;
162
162
  }
163
163
  const { AssetsRetryPlugin: AssetsRetryPlugin2 } = await Promise.resolve().then(() => (init_AssetsRetryPlugin(), AssetsRetryPlugin_exports));
164
- const distDir = (0, import_shared2.getDistPath)(config.output, "js");
164
+ const distDir = (0, import_shared2.getDistPath)(config, "js");
165
165
  if (options.crossOrigin === void 0) {
166
166
  options.crossOrigin = config.html.crossorigin;
167
167
  }
package/dist/index.mjs CHANGED
@@ -96,7 +96,7 @@ var init_AssetsRetryPlugin = __esm({
96
96
  if (!this.scriptPath) {
97
97
  this.scriptPath = path2.join(
98
98
  this.distDir,
99
- `assets-retry.${"0.1.8"}.js`
99
+ `assets-retry.${"0.2.0"}.js`
100
100
  );
101
101
  }
102
102
  return this.scriptPath;
@@ -166,7 +166,7 @@ var pluginAssetsRetry = (options = {}) => ({
166
166
  return;
167
167
  }
168
168
  const { AssetsRetryPlugin: AssetsRetryPlugin2 } = await Promise.resolve().then(() => (init_AssetsRetryPlugin(), AssetsRetryPlugin_exports));
169
- const distDir = getDistPath(config.output, "js");
169
+ const distDir = getDistPath(config, "js");
170
170
  if (options.crossOrigin === void 0) {
171
171
  options.crossOrigin = config.html.crossorigin;
172
172
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rsbuild/plugin-assets-retry",
3
- "version": "0.1.8",
3
+ "version": "0.2.0",
4
4
  "description": "Assets retry plugin for Rsbuild",
5
5
  "homepage": "https://rsbuild.dev",
6
6
  "repository": {
@@ -9,6 +9,7 @@
9
9
  "directory": "packages/plugin-assets-retry"
10
10
  },
11
11
  "license": "MIT",
12
+ "type": "commonjs",
12
13
  "exports": {
13
14
  ".": {
14
15
  "types": "./dist/index.d.ts",
@@ -23,7 +24,7 @@
23
24
  ],
24
25
  "dependencies": {
25
26
  "serialize-javascript": "^6.0.0",
26
- "@rsbuild/shared": "0.1.8"
27
+ "@rsbuild/shared": "0.2.0"
27
28
  },
28
29
  "devDependencies": {
29
30
  "@babel/core": "^7.23.2",
@@ -33,8 +34,8 @@
33
34
  "html-webpack-plugin": "npm:html-rspack-plugin@5.5.7",
34
35
  "terser": "5.19.2",
35
36
  "typescript": "^5.3.0",
36
- "@rsbuild/core": "0.1.8",
37
- "@rsbuild/test-helper": "0.1.8"
37
+ "@rsbuild/core": "0.2.0",
38
+ "@rsbuild/test-helper": "0.2.0"
38
39
  },
39
40
  "publishConfig": {
40
41
  "access": "public",