@modern-js/main-doc 2.32.0 → 2.32.2-alpha.1
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +16 -0
- package/docs/en/apis/app/runtime/app/define-config.mdx +2 -2
- package/docs/en/apis/app/runtime/model/auto-actions.mdx +2 -2
- package/docs/en/apis/app/runtime/model/model_.mdx +0 -1
- package/docs/en/apis/app/runtime/model/use-static-model.mdx +1 -1
- package/docs/en/components/enable-bff-caution.mdx +1 -1
- package/docs/en/configure/app/auto-load-plugin.mdx +2 -2
- package/docs/en/configure/app/bff/_category_.json +1 -1
- package/docs/en/configure/app/builder-plugins.mdx +2 -2
- package/docs/en/configure/app/dev/_category_.json +1 -1
- package/docs/en/configure/app/experiments/_category_.json +1 -1
- package/docs/en/configure/app/html/_category_.json +1 -1
- package/docs/en/configure/app/output/_category_.json +1 -1
- package/docs/en/configure/app/output/ssg.mdx +1 -1
- package/docs/en/configure/app/plugins.mdx +0 -1
- package/docs/en/configure/app/runtime/_category_.json +1 -1
- package/docs/en/configure/app/security/_category_.json +1 -1
- package/docs/en/configure/app/server/_category_.json +1 -1
- package/docs/en/configure/app/source/_category_.json +1 -1
- package/docs/en/configure/app/source/enable-async-entry.mdx +1 -1
- package/docs/en/configure/app/source/mainEntryName.mdx +1 -1
- package/docs/en/configure/app/testing/_category_.json +1 -1
- package/docs/en/configure/app/tools/_category_.json +1 -1
- package/docs/en/configure/app/tools/tailwindcss.mdx +45 -5
- package/docs/en/guides/advanced-features/bff/_category_.json +1 -1
- package/docs/en/guides/advanced-features/bff/frameworks.mdx +2 -2
- package/docs/en/guides/advanced-features/bff/function.mdx +1 -1
- package/docs/en/guides/advanced-features/code-split.mdx +2 -2
- package/docs/en/guides/advanced-features/eslint.mdx +2 -2
- package/docs/en/guides/advanced-features/low-level.mdx +2 -2
- package/docs/en/guides/advanced-features/ssg.mdx +2 -3
- package/docs/en/guides/advanced-features/ssr.mdx +2 -3
- package/docs/en/guides/advanced-features/testing.mdx +3 -3
- package/docs/en/guides/advanced-features/using-storybook.mdx +1 -1
- package/docs/en/guides/advanced-features/web-server.mdx +2 -2
- package/docs/en/guides/basic-features/alias.mdx +3 -3
- package/docs/en/guides/basic-features/css.mdx +27 -64
- package/docs/en/guides/basic-features/data-fetch.mdx +2 -2
- package/docs/en/guides/basic-features/env-vars.mdx +2 -2
- package/docs/en/guides/basic-features/html.mdx +0 -1
- package/docs/en/guides/basic-features/mock.mdx +4 -4
- package/docs/en/guides/basic-features/proxy.mdx +3 -3
- package/docs/en/guides/basic-features/routes.mdx +1 -2
- package/docs/en/guides/concept/builder.mdx +2 -2
- package/docs/en/guides/concept/entries.mdx +1 -1
- package/docs/en/guides/get-started/upgrade.mdx +1 -2
- package/docs/en/guides/topic-detail/framework-plugin/hook.mdx +2 -2
- package/docs/en/guides/topic-detail/generator/plugin/category.md +1 -1
- package/docs/en/guides/topic-detail/generator/plugin/context.md +1 -1
- package/docs/en/guides/topic-detail/micro-frontend/c02-development.mdx +2 -2
- package/docs/en/guides/topic-detail/model/auto-actions.mdx +1 -1
- package/docs/en/guides/topic-detail/model/performance.mdx +2 -1
- package/docs/en/guides/topic-detail/model/typescript-best-practice.mdx +1 -1
- package/docs/en/guides/topic-detail/model/use-model.mdx +1 -1
- package/docs/en/tutorials/first-app/c05-loader.mdx +0 -2
- package/docs/zh/community/releases.mdx +1 -1
- package/docs/zh/community/team.mdx +1 -1
- package/docs/zh/components/enable-bff-caution.mdx +2 -2
- package/docs/zh/configure/app/auto-load-plugin.mdx +2 -3
- package/docs/zh/configure/app/bff/_category_.json +2 -2
- package/docs/zh/configure/app/builder-plugins.mdx +2 -3
- package/docs/zh/configure/app/deploy/_category_.json +1 -1
- package/docs/zh/configure/app/dev/_category_.json +2 -2
- package/docs/zh/configure/app/experiments/_category_.json +2 -2
- package/docs/zh/configure/app/html/_category_.json +2 -2
- package/docs/zh/configure/app/output/_category_.json +2 -2
- package/docs/zh/configure/app/output/ssg.mdx +1 -1
- package/docs/zh/configure/app/performance/_category_.json +1 -1
- package/docs/zh/configure/app/plugins.mdx +1 -2
- package/docs/zh/configure/app/runtime/_category_.json +2 -2
- package/docs/zh/configure/app/security/_category_.json +2 -2
- package/docs/zh/configure/app/server/_category_.json +2 -2
- package/docs/zh/configure/app/source/_category_.json +2 -2
- package/docs/zh/configure/app/testing/_category_.json +2 -2
- package/docs/zh/configure/app/tools/_category_.json +2 -2
- package/docs/zh/configure/app/tools/tailwindcss.mdx +44 -6
- package/docs/zh/guides/advanced-features/bff/_category_.json +1 -1
- package/docs/zh/guides/advanced-features/code-split.mdx +2 -2
- package/docs/zh/guides/advanced-features/compatibility.mdx +1 -1
- package/docs/zh/guides/advanced-features/eslint.mdx +1 -1
- package/docs/zh/guides/advanced-features/low-level.mdx +2 -2
- package/docs/zh/guides/advanced-features/rspack-start.mdx +0 -1
- package/docs/zh/guides/advanced-features/ssg.mdx +3 -4
- package/docs/zh/guides/advanced-features/ssr.mdx +2 -3
- package/docs/zh/guides/advanced-features/testing.mdx +2 -2
- package/docs/zh/guides/advanced-features/using-storybook.mdx +1 -1
- package/docs/zh/guides/advanced-features/web-server.mdx +2 -2
- package/docs/zh/guides/basic-features/alias.mdx +3 -3
- package/docs/zh/guides/basic-features/css.mdx +27 -64
- package/docs/zh/guides/basic-features/data-fetch.mdx +1 -2
- package/docs/zh/guides/basic-features/env-vars.mdx +1 -1
- package/docs/zh/guides/basic-features/mock.mdx +2 -2
- package/docs/zh/guides/basic-features/proxy.mdx +3 -3
- package/docs/zh/guides/basic-features/routes.mdx +1 -2
- package/docs/zh/guides/concept/builder.mdx +1 -1
- package/docs/zh/guides/concept/entries.mdx +3 -3
- package/docs/zh/guides/get-started/upgrade.mdx +1 -2
- package/modern.config.ts +8 -0
- package/package.json +5 -5
- package/src/i18n/enUS.ts +1 -1
- package/src/i18n/zhCN.ts +1 -1
- package/docs/en/configure/app/source/design-system.mdx +0 -1175
- package/docs/zh/configure/app/source/design-system.mdx +0 -1174
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,21 @@
|
|
1
1
|
# @modern-js/main-doc
|
2
2
|
|
3
|
+
## 2.32.2-alpha.0
|
4
|
+
|
5
|
+
### Patch Changes
|
6
|
+
|
7
|
+
- bc1f8daf0ff: feat(builder): support custom logger in dev server
|
8
|
+
|
9
|
+
feat(builder): 支持自定义 logger
|
10
|
+
|
11
|
+
- @modern-js/builder-doc@2.32.2-alpha.0
|
12
|
+
|
13
|
+
## 2.32.1
|
14
|
+
|
15
|
+
### Patch Changes
|
16
|
+
|
17
|
+
- @modern-js/builder-doc@2.32.1
|
18
|
+
|
3
19
|
## 2.32.0
|
4
20
|
|
5
21
|
### Patch Changes
|
@@ -57,9 +57,9 @@ State type is Array, generate the following Actions:
|
|
57
57
|
- usage: `arr.unshift(element1, ..., elementN)`
|
58
58
|
- `elementN`: the element or elements to add to the beginning of the array.
|
59
59
|
- `filter`: filter element.
|
60
|
-
{/*
|
60
|
+
{/* Semantics are different from native methods, API to be modified */}
|
61
61
|
- `concat`: concat array.
|
62
|
-
{/*
|
62
|
+
{/* Semantics are different from native methods, API to be modified */}
|
63
63
|
- `splice`: modify the array by deleting or replacing existing elements or adding new elements in place, and return the modified array(Note that it is different from the native `splice` return value).
|
64
64
|
- usage: `splice(start[, deleteCount[, item1[, item2[, ...]]]])`
|
65
65
|
- `start`: specifies the start position of the modification(counting from 0).
|
@@ -61,7 +61,6 @@ const fooModel = model('foo').define({
|
|
61
61
|
- `context`: Reduck Context, can get underlying `store` object. `store` support all Redux Store [API](https://redux.js.org/api/store), also mounts the `use` method for consuming the Model, and the `unmount` method for unmounting the Model.
|
62
62
|
- utils: commonly used tool like `use`、`onMount`. `use` is the same as `store.use`, `onMount` is the hook function after the Model is mounted.
|
63
63
|
|
64
|
-
{/* TODO: @anchao 调整类型 */}
|
65
64
|
```ts
|
66
65
|
interface Utils {
|
67
66
|
use: UseModel;
|
@@ -1,3 +1,3 @@
|
|
1
1
|
:::caution
|
2
|
-
Please
|
2
|
+
Please use the [new command](/apis/app/commands#modern-new) in the root directory of the current project to enable BFF functionality first.
|
3
3
|
:::
|
@@ -10,7 +10,7 @@ sidebar_label: ssg
|
|
10
10
|
Enable the SSG for **Self-controlled Routing** or **Conventional Routing**.
|
11
11
|
|
12
12
|
:::info
|
13
|
-
For more routes detail, see [
|
13
|
+
For more routes detail, see [Routing](/guides/basic-features/routes).
|
14
14
|
|
15
15
|
:::
|
16
16
|
|
@@ -9,7 +9,7 @@ sidebar_label: enableAsyncEntry
|
|
9
9
|
|
10
10
|
This option is used for webpack Module Federation scenario.
|
11
11
|
|
12
|
-
When this option is enabled, Modern.js will wrap the automatically generated entry files with
|
12
|
+
When this option is enabled, Modern.js will wrap the automatically generated entry files with dynamic import (Asynchronous Boundaries), allowing page code to consume remote modules generated by Module Federation.
|
13
13
|
|
14
14
|
## Background
|
15
15
|
|
@@ -14,11 +14,17 @@ const tailwind = {
|
|
14
14
|
'./config/html/**/*.{html,ejs,hbs}',
|
15
15
|
'./storybook/**/*',
|
16
16
|
],
|
17
|
-
// Use source.design System config as Tailwind CSS theme config
|
18
|
-
theme: source.designSystem,
|
19
17
|
};
|
20
18
|
```
|
21
19
|
|
20
|
+
Used to modify the configuration of [Tailwind CSS](https://tailwindcss.com/docs/configuration).
|
21
|
+
|
22
|
+
### Enabling Tailwind CSS
|
23
|
+
|
24
|
+
Before using `tools.tailwindcss`, you need to enable the Tailwind CSS plugin for Modern.js.
|
25
|
+
|
26
|
+
Please refer to the section [Using Tailwind CSS](/guides/basic-features/css.html#using-tailwind-css) for instructions on how to enable it.
|
27
|
+
|
22
28
|
### Function Type
|
23
29
|
|
24
30
|
When `tools.tailwindcss`'s type is Function, the default tailwindcss config will be passed in as the first parameter, the config object can be modified directly, or a value can be returned as the final result.
|
@@ -51,8 +57,42 @@ export default {
|
|
51
57
|
};
|
52
58
|
```
|
53
59
|
|
54
|
-
###
|
60
|
+
### Notes
|
61
|
+
|
62
|
+
Please note:
|
63
|
+
|
64
|
+
- If you are using both the `tailwind.config.{ts,js}` file and `tools.tailwindcss` option, the configuration defined in `tools.tailwindcss` will take precedence and override the content defined in `tailwind.config.{ts,js}`.
|
65
|
+
- If you are using the `source.designSystem` configuration option simultaneously, the `theme` configuration of Tailwind CSS will be overridden by the value of `source.designSystem`.
|
66
|
+
|
67
|
+
The usage of other configurations follows the same approach as the official usage of Tailwind CSS. Please refer to [tailwindcss - Configuration](https://tailwindcss.com/docs/configuration) for more details.
|
68
|
+
|
69
|
+
### About source.designSystem
|
70
|
+
|
71
|
+
`source.designSystem` is a deprecated configuration option in Modern.js.
|
72
|
+
|
73
|
+
Starting from Modern.js vMAJOR_VERSION.33.0, you can use the `theme` configuration option of Tailwind CSS as a replacement for `source.designSystem`. It is no longer necessary to split the `theme` configuration and set it on `designSystem`.
|
74
|
+
|
75
|
+
- Previous usage:
|
76
|
+
|
77
|
+
```ts title="modern.config.ts"
|
78
|
+
const { theme, ...rest } = tailwindConfig;
|
79
|
+
|
80
|
+
export default {
|
81
|
+
tools: {
|
82
|
+
tailwindcss: rest,
|
83
|
+
},
|
84
|
+
source: {
|
85
|
+
designSystem: theme,
|
86
|
+
},
|
87
|
+
};
|
88
|
+
```
|
55
89
|
|
56
|
-
|
90
|
+
- Current usage:
|
57
91
|
|
58
|
-
|
92
|
+
```ts title="modern.config.ts"
|
93
|
+
export default {
|
94
|
+
tools: {
|
95
|
+
tailwindcss: tailwindConfig,
|
96
|
+
},
|
97
|
+
};
|
98
|
+
```
|
@@ -1,10 +1,10 @@
|
|
1
1
|
---
|
2
2
|
sidebar_position: 3
|
3
|
-
title: Frameworks
|
4
3
|
---
|
4
|
+
|
5
5
|
# Frameworks
|
6
6
|
|
7
|
-
Modern.js's BFF supports different runtime frameworks, currently Modern.js's BFF supports two runtime frameworks[Express.js](https://expressjs.com/)
|
7
|
+
Modern.js's BFF supports different runtime frameworks, currently Modern.js's BFF supports two runtime frameworks: [Express.js](https://expressjs.com/) and [Koa.js](https://koajs.com/).
|
8
8
|
|
9
9
|
## Function Mode
|
10
10
|
|
@@ -1,6 +1,5 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
sidebar_position: 4
|
2
|
+
sidebar_position: 5
|
4
3
|
---
|
5
4
|
|
6
5
|
# Static Site Generation
|
@@ -55,7 +54,7 @@ The above file directory will generate the following three routes:
|
|
55
54
|
- `/user/profile`
|
56
55
|
|
57
56
|
:::note
|
58
|
-
If you are not familiar with the rules of Conventional Routing, you can first check [
|
57
|
+
If you are not familiar with the rules of Conventional Routing, you can first check [Routing](/guides/basic-features/routes).
|
59
58
|
|
60
59
|
:::
|
61
60
|
|
@@ -1,9 +1,8 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
sidebar_position: 3
|
2
|
+
sidebar_position: 4
|
4
3
|
---
|
5
4
|
|
6
|
-
# Server-
|
5
|
+
# Server-Side Rendering
|
7
6
|
|
8
7
|
In Modern.js, SSR is readily available without the need for developers to write intricate server-level logic or worry about the operation and maintenance of SSR services. Additionally, Modern.js includes a comprehensive degradation strategy for SSR to ensure safe page execution.
|
9
8
|
|
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
sidebar_position: 3
|
2
|
+
sidebar_position: 13
|
4
3
|
---
|
4
|
+
|
5
5
|
# Custom Web Server
|
6
6
|
|
7
7
|
As a client-centric development framework, Modern.js has limited customization capabilities on the server side. However, in some development scenarios, special server-level logic needs to be customized, such as user authentication, request preprocessing, and adding page rendering skeletons.
|
@@ -2,7 +2,7 @@
|
|
2
2
|
sidebar_position: 2
|
3
3
|
---
|
4
4
|
|
5
|
-
#
|
5
|
+
# Styling
|
6
6
|
|
7
7
|
Modern.js has built-in a variety of commonly used CSS solutions, including Less / Sass / Stylus preprocessors, PostCSS, CSS Modules, CSS-in-JS, and Tailwind CSS.
|
8
8
|
|
@@ -103,47 +103,46 @@ Depending on your needs, you can selectively import the CSS files provided by Ta
|
|
103
103
|
|
104
104
|
:::
|
105
105
|
|
106
|
-
### Tailwind CSS
|
107
|
-
|
108
|
-
Tailwind CSS provides an official extension called [Tailwind CSS IntelliSense](https://github.com/tailwindlabs/tailwindcss-intellisense) for autocompletion of Tailwind CSS class names, CSS functions, and directives in VS Code.
|
106
|
+
### Configuring Tailwind CSS
|
109
107
|
|
110
|
-
|
108
|
+
In Modern.js, you have two ways to configure Tailwind CSS:
|
111
109
|
|
112
|
-
1.
|
113
|
-
2. Create a `tailwind.config.ts` file in the root directory of your project and write the desired Tailwind CSS configuration.
|
110
|
+
1. Using the `tailwind.config.{ts,js}` file, which follows the official usage of Tailwind CSS. Please refer to ["Tailwind CSS - Configuration"](https://tailwindcss.com/docs/configuration) for more details.
|
114
111
|
|
115
112
|
```ts title="tailwind.config.ts"
|
113
|
+
import type { Config } from 'tailwindcss';
|
114
|
+
|
116
115
|
export default {
|
117
|
-
content: [
|
118
|
-
|
119
|
-
'./config/html/**/*.{html,ejs,hbs}',
|
120
|
-
'./storybook/**/*',
|
121
|
-
],
|
122
|
-
// Theme configuration (optional)
|
123
|
-
theme: {},
|
124
|
-
};
|
116
|
+
content: ['./src/**/*.{js,jsx,ts,tsx}'],
|
117
|
+
} as Config;
|
125
118
|
```
|
126
119
|
|
127
|
-
|
120
|
+
:::tip
|
121
|
+
Please upgrade Modern.js to version >= MAJOR_VERSION.33.0 to support automatic reading of `tailwind.config.{ts,js}` files.
|
122
|
+
:::
|
128
123
|
|
129
|
-
|
130
|
-
import tailwindConfig from './tailwind.config';
|
124
|
+
2. Using the [tools.tailwindcss](/configure/app/tools/tailwindcss.html) configuration option. This is the old way of configuring Tailwind CSS, and we recommend using the `tailwind.config.{ts,js}` file for configuration.
|
131
125
|
|
132
|
-
|
126
|
+
```ts title="modern.config.ts"
|
127
|
+
export default {
|
133
128
|
tools: {
|
134
|
-
tailwindcss:
|
135
|
-
|
136
|
-
|
137
|
-
source: {
|
138
|
-
designSystem: tailwindConfig.theme,
|
129
|
+
tailwindcss: {
|
130
|
+
content: ['./src/**/*.{js,jsx,ts,tsx}'],
|
131
|
+
},
|
139
132
|
},
|
140
|
-
}
|
133
|
+
};
|
141
134
|
```
|
142
135
|
|
143
|
-
|
136
|
+
If you are using both the `tailwind.config.{ts,js}` file and `tools.tailwindcss` option, the configuration defined in `tools.tailwindcss` will take precedence and override the content defined in `tailwind.config.{ts,js}`.
|
144
137
|
|
145
|
-
|
146
|
-
|
138
|
+
### Tailwind CSS Autocomplete
|
139
|
+
|
140
|
+
Tailwind CSS provides an official extension called [Tailwind CSS IntelliSense](https://github.com/tailwindlabs/tailwindcss-intellisense) for autocompletion of Tailwind CSS class names, CSS functions, and directives in VS Code.
|
141
|
+
|
142
|
+
You can follow the steps below to enable the autocomplete feature:
|
143
|
+
|
144
|
+
1. Install the [Tailwind CSS IntelliSense](https://github.com/tailwindlabs/tailwindcss-intellisense) extension in VS Code.
|
145
|
+
2. If the root directory of your project does not have a `tailwind.config.{ts,js}` file, you need to create one and write the Tailwind CSS configuration for your current project. Otherwise, the IDE plugin will not work correctly.
|
147
146
|
|
148
147
|
### Tailwind CSS Version
|
149
148
|
|
@@ -162,39 +161,3 @@ Tailwind CSS v2 and v3 do not support the IE 11 browser, please refer to:
|
|
162
161
|
- [Tailwind CSS v2 - Browser Support](https://v2.tailwindcss.com/docs/browser-support)
|
163
162
|
|
164
163
|
If you use Tailwind CSS on IE 11 browser, some styles may not be available, please use it with caution.
|
165
|
-
|
166
|
-
### Theme Configuration
|
167
|
-
|
168
|
-
When you need to customize the [theme](https://tailwindcss.com/docs/theme) configuration of Tailwind CSS, you can modify it in the [`source.designSystem`](/configure/app/source/design-system) configuration. For example, adding a `primary` color theme:
|
169
|
-
|
170
|
-
```ts title="modern.config.ts"
|
171
|
-
export default defineConfig({
|
172
|
-
source: {
|
173
|
-
designSystem: {
|
174
|
-
extend: {
|
175
|
-
colors: {
|
176
|
-
primary: '#5c6ac4',
|
177
|
-
},
|
178
|
-
},
|
179
|
-
},
|
180
|
-
},
|
181
|
-
});
|
182
|
-
```
|
183
|
-
|
184
|
-
When you need to make other special configurations to Tailwind CSS besides [theme](https://tailwindcss.com/docs/theme), you can configure them in [`tools.tailwindcss`](/configure/app/tools/tailwindcss), such as setting `variants`:
|
185
|
-
|
186
|
-
```ts title="modern.config.ts"
|
187
|
-
export default defineConfig({
|
188
|
-
tools: {
|
189
|
-
tailwindcss: {
|
190
|
-
variants: {
|
191
|
-
extend: {
|
192
|
-
backgroundColor: ['active'],
|
193
|
-
},
|
194
|
-
},
|
195
|
-
},
|
196
|
-
},
|
197
|
-
});
|
198
|
-
```
|
199
|
-
|
200
|
-
> When you configure Tailwind CSS for your project, the combination of [source.designSystem](/configure/app/source/design-system) and [tools.tailwindcss](/configure/app/tools/tailwindcss) configurations is equivalent to configuring a `tailwindcss.config.js` file separately. [source.designSystem](/configure/app/source/design-system) is equivalent to the Tailwind CSS [theme](https://v2.tailwindcss.com/docs/configuration#theme) configuration.
|
@@ -1,8 +1,8 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
sidebar_position: 6
|
2
|
+
sidebar_position: 5
|
4
3
|
---
|
5
|
-
|
4
|
+
|
5
|
+
# Data Mocking
|
6
6
|
|
7
7
|
Modern.js allows you to easily generate mock data so that the front-end can develop independently without depending on the back-end API.
|
8
8
|
|
@@ -52,7 +52,7 @@ const Mock = require('mockjs');
|
|
52
52
|
module.exports = {
|
53
53
|
'/api/getInfo': Mock.mock({
|
54
54
|
'data|1-10': [{ name: '@cname' }],
|
55
|
-
}) /* => {data: [{name: "
|
55
|
+
}) /* => {data: [{name: "Jack"}, {name: "Jim"}, {name: "Mary"}} */,
|
56
56
|
};
|
57
57
|
```
|
58
58
|
|
@@ -1,9 +1,8 @@
|
|
1
1
|
---
|
2
|
-
title: Routes
|
3
2
|
sidebar_position: 1
|
4
3
|
---
|
5
4
|
|
6
|
-
#
|
5
|
+
# Routing
|
7
6
|
|
8
7
|
Modern.js's routing is based on [React Router 6](https://reactrouter.com/en/main) and provides multiple types of routing modes. According to different [entry](/guides/concept/entries) types, routing is divided into three modes: **Conventional Routing**, **Self-controlled Routing**, and **Other**.
|
9
8
|
|
@@ -2,7 +2,7 @@
|
|
2
2
|
sidebar_position: 2
|
3
3
|
---
|
4
4
|
|
5
|
-
#
|
5
|
+
# Build Engine
|
6
6
|
|
7
7
|
**Modern.js uses [Modern.js Builder](https://modernjs.dev/builder/en) to build your Web App.**
|
8
8
|
|
@@ -16,7 +16,7 @@ From a building perspective, Modern.js is divided into three layers, from top to
|
|
16
16
|
- Common build engine: Modern.js Builder.
|
17
17
|
- Low-level bundler: webpack and Rspack.
|
18
18
|
|
19
|
-
<img src="https://lf3-static.bytednsdoc.com/obj/eden-cn/zq-uylkvT/ljhwZthlaukjlkulzlp/builder-layers-
|
19
|
+
<img src="https://lf3-static.bytednsdoc.com/obj/eden-cn/zq-uylkvT/ljhwZthlaukjlkulzlp/builder-layers-0824.png" style={{ width: '100%', maxWidth: '540px' }} />
|
20
20
|
|
21
21
|
## Builder Documentation
|
22
22
|
|