@modern-js/builder 2.7.0 → 2.8.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/CHANGELOG.md +16 -0
- package/README.md +3 -3
- package/dist/plugins/html.js +1 -3
- package/dist/plugins/inlineChunk.js +1 -1
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @modern-js/builder
|
|
2
2
|
|
|
3
|
+
## 2.8.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- bd369a89a4: fix(builder): failed to set CDN URL via html.tags
|
|
8
|
+
|
|
9
|
+
fix(builder): 修复 html.tags 无法设置 CDN URL 的问题
|
|
10
|
+
|
|
11
|
+
- Updated dependencies [bd369a89a4]
|
|
12
|
+
- Updated dependencies [1104a9f18b]
|
|
13
|
+
- Updated dependencies [2c1151271d]
|
|
14
|
+
- Updated dependencies [481461a61d]
|
|
15
|
+
- Updated dependencies [1f6ca2c7fb]
|
|
16
|
+
- @modern-js/builder-shared@2.8.0
|
|
17
|
+
- @modern-js/utils@2.8.0
|
|
18
|
+
|
|
3
19
|
## 2.7.0
|
|
4
20
|
|
|
5
21
|
### Minor Changes
|
package/README.md
CHANGED
|
@@ -5,12 +5,12 @@
|
|
|
5
5
|
<p align="center">
|
|
6
6
|
Modern.js Builder
|
|
7
7
|
<br/>
|
|
8
|
-
<a href="https://modernjs.dev/builder" target="blank">
|
|
8
|
+
<a href="https://modernjs.dev/builder/en" target="blank">
|
|
9
9
|
modernjs.dev/builder
|
|
10
10
|
</a>
|
|
11
11
|
</p>
|
|
12
12
|
<p align="center">
|
|
13
|
-
A
|
|
13
|
+
A build engine for web development.
|
|
14
14
|
</p>
|
|
15
15
|
|
|
16
16
|
# @modern-js/builder
|
|
@@ -24,4 +24,4 @@ This is the core package of Modern.js Builder.
|
|
|
24
24
|
|
|
25
25
|
## Contributing
|
|
26
26
|
|
|
27
|
-
- [Contributing Guide](https://github.com/
|
|
27
|
+
- [Contributing Guide](https://github.com/web-infra-dev/modern.js/blob/main/CONTRIBUTING.md)
|
package/dist/plugins/html.js
CHANGED
|
@@ -66,8 +66,6 @@ async function getChunks(entryName, entryValue) {
|
|
|
66
66
|
}
|
|
67
67
|
return [...dependOn, entryName];
|
|
68
68
|
}
|
|
69
|
-
// Determine if the string is a favicon url
|
|
70
|
-
const isFaviconUrl = (str) => str.startsWith('http');
|
|
71
69
|
const applyInjectTags = (api) => {
|
|
72
70
|
api.modifyBundlerChain(async (chain, { HtmlPlugin, CHAIN_ID }) => {
|
|
73
71
|
const config = api.getNormalizedConfig();
|
|
@@ -141,7 +139,7 @@ const builderPluginHtml = () => ({
|
|
|
141
139
|
templateParameters,
|
|
142
140
|
};
|
|
143
141
|
if (favicon) {
|
|
144
|
-
if (
|
|
142
|
+
if ((0, builder_shared_1.isURL)(favicon)) {
|
|
145
143
|
faviconUrls.push({
|
|
146
144
|
filename,
|
|
147
145
|
url: favicon,
|
|
@@ -35,7 +35,7 @@ const builderPluginInlineChunk = () => ({
|
|
|
35
35
|
}
|
|
36
36
|
const { InlineChunkHtmlPlugin } = await Promise.resolve().then(() => __importStar(require('@modern-js/builder-shared')));
|
|
37
37
|
const { disableInlineRuntimeChunk, enableInlineStyles,
|
|
38
|
-
// todo: not support enableInlineScripts in
|
|
38
|
+
// todo: not support enableInlineScripts in Rspack yet, which will take unknown build error
|
|
39
39
|
enableInlineScripts, } = config.output;
|
|
40
40
|
chain.plugin(CHAIN_ID.PLUGIN.INLINE_HTML).use(InlineChunkHtmlPlugin, [
|
|
41
41
|
HtmlPlugin,
|
package/package.json
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
"name": "@modern-js/builder",
|
|
3
3
|
"description": "Builder of modern.js.",
|
|
4
4
|
"homepage": "https://modernjs.dev",
|
|
5
|
-
"bugs": "https://github.com/
|
|
6
|
-
"repository": "
|
|
5
|
+
"bugs": "https://github.com/web-infra-dev/modern.js/issues",
|
|
6
|
+
"repository": "web-infra-dev/modern.js",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"keywords": [
|
|
9
9
|
"react",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"engines": {
|
|
15
15
|
"node": ">=14.0.0"
|
|
16
16
|
},
|
|
17
|
-
"version": "2.
|
|
17
|
+
"version": "2.8.0",
|
|
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.
|
|
31
|
-
"@modern-js/utils": "2.
|
|
30
|
+
"@modern-js/builder-shared": "2.8.0",
|
|
31
|
+
"@modern-js/utils": "2.8.0"
|
|
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.
|
|
39
|
+
"@scripts/vitest-config": "2.8.0"
|
|
40
40
|
},
|
|
41
41
|
"publishConfig": {
|
|
42
42
|
"registry": "https://registry.npmjs.org/",
|