docs(ESM): add ESM guide#11344
Merged
Merged
Conversation
✅ Deploy Preview for rspack ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
chenjiahan
reviewed
Aug 12, 2025
2 tasks
JSerFeng
reviewed
Aug 12, 2025
9b0a109 to
c725692
Compare
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR adds comprehensive ESM (ECMAScript Modules) documentation to the Rspack project, providing guides for both Chinese and English versions that explain how to build applications and libraries with ESM output format.
- Adds detailed ESM configuration documentation with 12 key configuration options and their effects
- Provides specific examples for building both applications and libraries in ESM format
- Includes future roadmap and current limitations of ESM support in Rspack
Reviewed Changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 6 comments.
| File | Description |
|---|---|
| website/docs/zh/guide/features/esm.mdx | Adds Chinese ESM guide with configuration options, examples, and roadmap |
| website/docs/en/guide/features/esm.mdx | Adds English ESM guide mirroring the Chinese version |
| website/docs/zh/guide/features/_meta.json | Updates Chinese navigation to include ESM guide |
| website/docs/en/guide/features/_meta.json | Updates English navigation to include ESM guide |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
JSerFeng
previously approved these changes
Aug 20, 2025
chenjiahan
reviewed
Aug 20, 2025
chenjiahan
reviewed
Aug 20, 2025
chenjiahan
reviewed
Aug 20, 2025
chenjiahan
reviewed
Aug 20, 2025
chenjiahan
reviewed
Aug 20, 2025
chenjiahan
reviewed
Aug 20, 2025
Co-authored-by: Fy <1114550440@qq.com>
Co-authored-by: neverland <chenjiahan.jait@bytedance.com>
Co-authored-by: neverland <chenjiahan.jait@bytedance.com>
Co-authored-by: neverland <chenjiahan.jait@bytedance.com>
Co-authored-by: neverland <chenjiahan.jait@bytedance.com>
Co-authored-by: neverland <chenjiahan.jait@bytedance.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
add ESM guide, @JSerFeng please take a look at the roadmap section, i'll update English version after your revision.
Related links
Checklist