@modern-js/builder 2.13.2 → 2.13.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/CHANGELOG.md CHANGED
@@ -1,5 +1,25 @@
1
1
  # @modern-js/builder
2
2
 
3
+ ## 2.13.4
4
+
5
+ ### Patch Changes
6
+
7
+ - @modern-js/builder-shared@2.13.4
8
+ - @modern-js/utils@2.13.4
9
+
10
+ ## 2.13.3
11
+
12
+ ### Patch Changes
13
+
14
+ - 28583e8: feat(builder): add assetsRetry.inlineScript config
15
+
16
+ feat(builder): 新增 assetsRetry.inlineScript 配置项
17
+
18
+ - Updated dependencies [18cd03f]
19
+ - Updated dependencies [28583e8]
20
+ - @modern-js/builder-shared@2.13.3
21
+ - @modern-js/utils@2.13.3
22
+
3
23
  ## 2.13.2
4
24
 
5
25
  ### Patch Changes
@@ -35,9 +35,11 @@ function builderPluginAssetsRetry() {
35
35
  return;
36
36
  }
37
37
  const { AssetsRetryPlugin } = await Promise.resolve().then(() => __importStar(require('@modern-js/builder-shared')));
38
+ const distDir = (0, builder_shared_1.getDistPath)(config.output, 'js');
38
39
  chain.plugin(CHAIN_ID.PLUGIN.ASSETS_RETRY).use(AssetsRetryPlugin, [
39
40
  {
40
41
  ...(config.output.assetsRetry || {}),
42
+ distDir,
41
43
  HtmlPlugin,
42
44
  },
43
45
  ]);
package/package.json CHANGED
@@ -14,7 +14,7 @@
14
14
  "engines": {
15
15
  "node": ">=14.0.0"
16
16
  },
17
- "version": "2.13.2",
17
+ "version": "2.13.4",
18
18
  "jsnext:source": "./src/index.ts",
19
19
  "types": "./dist/index.d.ts",
20
20
  "main": "./dist/index.js",
@@ -27,8 +27,8 @@
27
27
  },
28
28
  "dependencies": {
29
29
  "@svgr/webpack": "6.5.1",
30
- "@modern-js/builder-shared": "2.13.2",
31
- "@modern-js/utils": "2.13.2"
30
+ "@modern-js/builder-shared": "2.13.4",
31
+ "@modern-js/utils": "2.13.4"
32
32
  },
33
33
  "devDependencies": {
34
34
  "@babel/core": "7.18.0",
@@ -36,7 +36,7 @@
36
36
  "@types/babel__preset-env": "^7.9.2",
37
37
  "@types/node": "^14",
38
38
  "typescript": "^4",
39
- "@scripts/vitest-config": "2.13.2"
39
+ "@scripts/vitest-config": "2.13.4"
40
40
  },
41
41
  "publishConfig": {
42
42
  "registry": "https://registry.npmjs.org/",