@modern-js/main-doc 0.0.0-next-1686806009722 → 0.0.0-next-1686828255168
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,10 +1,11 @@
|
|
1
1
|
# @modern-js/main-doc
|
2
2
|
|
3
|
-
## 0.0.0-next-
|
3
|
+
## 0.0.0-next-1686828255168
|
4
4
|
|
5
5
|
### Patch Changes
|
6
6
|
|
7
|
-
-
|
7
|
+
- Updated dependencies [4d4dca08f6]
|
8
|
+
- @modern-js/builder-doc@0.0.0-next-1686828255168
|
8
9
|
|
9
10
|
## 2.23.0
|
10
11
|
|
@@ -6,9 +6,9 @@ sidebar_position: 5
|
|
6
6
|
|
7
7
|
## Browserslist Configuration
|
8
8
|
|
9
|
-
Modern.js supports setting the browserslist for your web applications. You can set the [Browserslist](https://browsersl.ist/) in the `.browserslistrc` file.
|
9
|
+
Modern.js supports setting the browserslist for your web applications. You can set the value of [Browserslist](https://browsersl.ist/) in the `.browserslistrc` file.
|
10
10
|
|
11
|
-
When you create a new Modern.js project, it includes a `.browserslistrc` configuration by default, which means that JavaScript code will be compiled to ES6.
|
11
|
+
When you create a new Modern.js project, it will includes a `.browserslistrc` configuration by default, which means that the JavaScript code will be compiled to ES6.
|
12
12
|
|
13
13
|
```yaml title=".browserslistrc"
|
14
14
|
chrome >= 51
|
@@ -22,32 +22,11 @@ ios_saf >= 10
|
|
22
22
|
Please refer to [Modern.js Builder - Browserslist](https://modernjs.dev/builder/en/guide/advanced/browserslist) for more information.
|
23
23
|
:::
|
24
24
|
|
25
|
-
## Browserslist
|
26
|
-
|
27
|
-
Modern.js supports the `browserslist` field in the `package.json` file, or a `.browserslistrc` file to specify the target browser range covered by the project.
|
28
|
-
|
29
|
-
This value is used by ['@babel/preset-env'] (https://babeljs.io/docs/en/babel-preset-env) and ['autoprefixer'] (https://github.com/postcss/autoprefixer) to determine the JavaScript syntax features to be converted and the CSS browser prefix to be added.
|
30
|
-
|
31
|
-
The default value in Modern.js as follow:
|
32
|
-
|
33
|
-
```js
|
34
|
-
['> 0.01%', 'not dead', 'not op_mini all'];
|
35
|
-
```
|
36
|
-
|
37
|
-
You can learn how to customize the browserslist [here](https://github.com/browserslist/browserslist).
|
38
|
-
|
39
|
-
See Modern.js Builder docs to learn more [Browserslist](https://modernjs.dev/builder/en/guide/advanced/browserslist.html) info.
|
40
|
-
|
41
|
-
:::note
|
42
|
-
Modern.js also supports configuring [output.override Browserslist](/configure/app/output/override-browserslist) to override the default browserslist value.
|
43
|
-
|
44
|
-
:::
|
45
|
-
|
46
25
|
## Polyfill
|
47
26
|
|
48
27
|
### Polyfill At Compile
|
49
28
|
|
50
|
-
Modern.js
|
29
|
+
Modern.js defaults to importing corresponding polyfill code from [core-js] (https://github.com/zloirock/core-js) during compilation.
|
51
30
|
|
52
31
|
By default, the required Polyfill code will be introduced according to the settings of the Browserslist, so there is no need to worry about the Polyfill problem of the project source code and third-party dependencies, but because it contains some Polyfill code that is not used, the final bundle size may be increased.
|
53
32
|
|
package/package.json
CHANGED
@@ -15,14 +15,14 @@
|
|
15
15
|
"modern",
|
16
16
|
"modern.js"
|
17
17
|
],
|
18
|
-
"version": "0.0.0-next-
|
18
|
+
"version": "0.0.0-next-1686828255168",
|
19
19
|
"publishConfig": {
|
20
20
|
"registry": "https://registry.npmjs.org/",
|
21
21
|
"access": "public",
|
22
22
|
"provenance": true
|
23
23
|
},
|
24
24
|
"peerDependencies": {
|
25
|
-
"@modern-js/builder-doc": "0.0.0-next-
|
25
|
+
"@modern-js/builder-doc": "0.0.0-next-1686828255168"
|
26
26
|
},
|
27
27
|
"devDependencies": {
|
28
28
|
"classnames": "^2",
|
@@ -34,9 +34,9 @@
|
|
34
34
|
"fs-extra": "^10",
|
35
35
|
"@types/node": "^16",
|
36
36
|
"@types/fs-extra": "^9",
|
37
|
-
"@modern-js/builder-doc": "0.0.0-next-
|
38
|
-
"@modern-js/doc-tools": "0.0.0-next-
|
39
|
-
"@modern-js/doc-plugin-auto-sidebar": "0.0.0-next-
|
37
|
+
"@modern-js/builder-doc": "0.0.0-next-1686828255168",
|
38
|
+
"@modern-js/doc-tools": "0.0.0-next-1686828255168",
|
39
|
+
"@modern-js/doc-plugin-auto-sidebar": "0.0.0-next-1686828255168"
|
40
40
|
},
|
41
41
|
"scripts": {
|
42
42
|
"dev": "modern dev",
|