From 4c49e4f74c4b288ea6b97b17e192dae494e27b10 Mon Sep 17 00:00:00 2001 From: neverland Date: Thu, 5 Jun 2025 12:59:59 +0800 Subject: [PATCH] docs: update output format description to include IIFE --- website/docs/en/guide/basic/output-format.mdx | 2 +- website/docs/zh/guide/basic/output-format.mdx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/website/docs/en/guide/basic/output-format.mdx b/website/docs/en/guide/basic/output-format.mdx index 064ded376..f2f79d533 100644 --- a/website/docs/en/guide/basic/output-format.mdx +++ b/website/docs/en/guide/basic/output-format.mdx @@ -5,7 +5,7 @@ import MF from '../../shared/components/MF.mdx'; # Output format -There are four supported output formats for the generated JavaScript files in Rslib: `esm`, `cjs`, `umd`, and `mf`. In this chapter, we will introduce the differences between these formats and how to choose the right one for your library. +There are multiple supported output formats for the generated JavaScript files in Rslib: [ESM](#esm--cjs), [CJS](#esm--cjs), [UMD](#umd), [MF](#mf), and [IIFE](#iife). In this chapter, we will introduce the differences between these formats and how to choose the right one for your library. ## ESM / CJS diff --git a/website/docs/zh/guide/basic/output-format.mdx b/website/docs/zh/guide/basic/output-format.mdx index b749129ee..a9fdebf72 100644 --- a/website/docs/zh/guide/basic/output-format.mdx +++ b/website/docs/zh/guide/basic/output-format.mdx @@ -5,7 +5,7 @@ import MF from '../../shared/components/MF.mdx'; # 产物输出格式 -Rslib 支持四种 JavaScript 文件的输出格式:`esm`、`cjs`、`umd` 和 `mf`。在本章中,我们将介绍这些格式之间的区别以及如何为你的库选择合适的格式。 +Rslib 支持多种 JavaScript 文件的输出格式:[ESM](#esm--cjs)、[CJS](#esm--cjs)、[UMD](#umd)、[MF](#mf) 和 [IIFE](#iife)。在本章中,我们将介绍这些格式之间的区别以及如何为你的库选择合适的格式。 ## ESM / CJS