Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: fix output.target link #3797

Merged
merged 1 commit into from
Oct 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/core/src/types/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ export type TransformDescriptor = {
resourceQuery?: Rspack.RuleSetCondition;
/**
* Match based on the Rsbuild targets and only apply the transform to certain targets.
* @see https://rsbuild.dev/config/output/targets
* @see https://rsbuild.dev/config/output/target
*/
targets?: RsbuildTarget[];
/**
Expand Down Expand Up @@ -330,7 +330,7 @@ export type ProcessAssetsDescriptor = {
stage: ProcessAssetsStage;
/**
* Match based on the Rsbuild targets and only process the assets of certain targets.
* @see https://rsbuild.dev/config/output/targets
* @see https://rsbuild.dev/config/output/target
*/
targets?: RsbuildTarget[];
/**
Expand Down
6 changes: 3 additions & 3 deletions website/docs/en/guide/start/features.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ Here are all the main features supported by Rsbuild.
| SourceMap generation | Source maps are generated in development mode by default | <ul><li>[output.sourceMap](/config/output/source-map)</li></ul> |
| Alias | Optional feature, set import alias | <ul><li>[source.alias](/config/source/alias)</li></ul> |
| Babel compilation | Optional feature, use Babel to transform JavaScript and TypeScript code | <ul><li>[Babel Plugin](/plugins/list/plugin-babel)</li></ul> |
| Node outputs | Optional feature, support building bundles that run in Node.js environment | <ul><li>[Node Target](/config/output/targets#node-target)</li></ul> |
| Web Worker outputs | Optional feature, support building bundles that run in a Web Worker environment | <ul><li>[Web Worker Target](/config/output/targets#web-worker-target)</li></ul> |
| Node outputs | Optional feature, support building bundles that run in Node.js environment | <ul><li>[Node Target](/config/output/target#node-target)</li></ul> |
| Web Worker outputs | Optional feature, support building bundles that run in a Web Worker environment | <ul><li>[Web Worker Target](/config/output/target#web-worker-target)</li></ul> |
| Browserslist | Optional feature, using browserslist (opens new window) to specify which browsers should be supported in your Web application. | <ul><li>[Browserslist](/guide/advanced/browserslist)</li></ul> |
| Compatibility check | Optional feature, analyze if there are incompatible advanced syntax in the outputs within the current browser scope | <ul><li>[@rsbuild/plugin-check-syntax](https://github.com/rspack-contrib/rsbuild-plugin-check-syntax)</li></ul> |
| Environment variable | Optional feature, inject environment variables or expressions into the code | <ul><li>[Environment Variables](/guide/advanced/env-vars)</li></ul> |
Expand Down Expand Up @@ -55,7 +55,7 @@ Here are all the main features supported by Rsbuild.
| Features | Description | Links |
| ---------- | ------------------------------------------------------------------------------ | --------------------------------------------------------------- |
| Public Dir | Use the public directory as the directory for serving public assets by default | <ul><li>[server.publicDir](/config/server/public-dir)</li></ul> |
| Proxy | Optional feature, proxy requests to the specified service | <ul><li>[server.proxy](/config/server/proxy)</li></ul> |
| Proxy | Optional feature, proxy requests to the specified service | <ul><li>[server.proxy](/config/server/proxy)</li></ul> |
| Open page | Optional feature, automatically open page in browser when starting server | <ul><li>[server.open](/config/server/open)</li></ul> |
| HTTPS | Optional feature, enable HTTPS server | <ul><li>[server.https](/config/server/https)</li></ul> |

Expand Down
6 changes: 3 additions & 3 deletions website/docs/zh/guide/start/features.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
| SourceMap 生成 | 默认在开发模式生成 SourceMap | <ul><li>[output.sourceMap](/config/output/source-map)</li></ul> |
| 文件别名 | 可选功能,通过 alias 设置文件别名 | <ul><li>[路径别名](/guide/advanced/alias)</li><li>[source.alias](/config/source/alias)</li></ul> |
| Babel 编译 | 可选功能,通过 Babel 对 JavaScript 和 TypeScript 代码进行转译 | <ul><li>[Babel 插件](/plugins/list/plugin-babel)</li></ul> |
| Node 产物 | 可选功能,支持构建出运行在 Node.js 环境的 JavaScript 产物 | <ul><li>[Node 产物](/config/output/targets#node-target)</li></ul> |
| Web Worker 产物 | 可选功能,支持构建出运行在 Web Worker 环境的 JavaScript 产物 | <ul><li>[Web Worker 产物](/config/output/targets#web-worker-target)</li></ul> |
| Node 产物 | 可选功能,支持构建出运行在 Node.js 环境的 JavaScript 产物 | <ul><li>[Node 产物](/config/output/target#node-target)</li></ul> |
| Web Worker 产物 | 可选功能,支持构建出运行在 Web Worker 环境的 JavaScript 产物 | <ul><li>[Web Worker 产物](/config/output/target#web-worker-target)</li></ul> |
| 浏览器范围 | 可选功能,通过 browserslist 来设置 Web 应用需要兼容的浏览器范围 | <ul><li>[浏览器范围](/guide/advanced/browserslist)</li></ul> |
| 兼容性检查 | 可选功能,分析构建产物中是否存在当前浏览器范围下不兼容的高级语法 | <ul><li>[@rsbuild/plugin-check-syntax](https://github.com/rspack-contrib/rsbuild-plugin-check-syntax)</li></ul> |
| 注入环境变量 | 可选功能,向代码中注入环境变量或表达式 | <ul><li>[环境变量](/guide/advanced/env-vars)</li></ul> |
Expand Down Expand Up @@ -55,7 +55,7 @@
| 功能 | 描述 | 相关链接 |
| ----------- | ------------------------------------------------ | --------------------------------------------------------------- |
| Public 目录 | 默认将 public 目录作为静态资源服务的文件夹 | <ul><li>[server.publicDir](/config/server/public-dir)</li></ul> |
| 请求代理 | 可选功能,将请求代理到指定的服务上 | <ul><li>[server.proxy](/config/server/proxy)</li></ul> |
| 请求代理 | 可选功能,将请求代理到指定的服务上 | <ul><li>[server.proxy](/config/server/proxy)</li></ul> |
| 打开页面 | 可选功能,在启动 server 时自动在浏览器中打开页面 | <ul><li>[server.open](/config/server/open)</li></ul> |
| HTTPS | 可选功能,开启 server 对 HTTPS 的支持 | <ul><li>[server.https](/config/server/https)</li></ul> |

Expand Down
Loading