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(en): merge rollup/master into rollup-docs-cn/master @ 5d91210d #156

Merged
merged 7 commits into from
Oct 8, 2024

Conversation

docschina-bot
Copy link
Collaborator

此 PR 自动生成。

合并 rollup/rollup 的修改至本仓库(@ 5d91210

以下文件存在冲突,可能需要重新翻译:

请解决所有冲突后提交到此 pull request,可直接在 Github 修改、切换到 sync-5d91210d 分支进行修改或者使用 Github Desktop 拉取此 pr 修改并提交。

禁止使用 Squash Merge 来合并此 Pull Request!

使用该操作会导致上游仓库的内容丢失,并致使下一次合并产生冲突。

lukastaegert and others added 4 commits October 2, 2024 11:25
* Implement jsx option

* Add tests

* Pass jsx options to SWC

Signed-off-by: Martin Idel <[email protected]>

* Add JsxElement to ast-types

* Add JsxOpeningElement

* Add JSXElementChild -> JSXElement

* Add JSXElementChild -> JSXText

* WIP Add JsxAttribute

* Add JSXElementChild -> JSXExprContainer and JSXEmptyExpr

* Add JsxFragment

* Align AST types with official types and verify

This adds acorn-jsx to test the AST against.
Tests will fail if the check fails.

* Sort converters into alphabetical order

* Associate identifier with variable

* Use correct JSX types

* Ensure React is included when JSX is used

* Rework JSX option and global variable handling for preserving

* Start work on transpilation support

* Improve option and transpilation support

* Handle missing jsx factory

* Add additional tests and support expressions

* Handle JSXText

* Support attributes transpilation

* Support fragments

* Extract shared code from fragments

* Support JSXText in all possible positions

* Support all possible JSX attribute types

* Support JSXMemberExpression

* Support JSXSpreadChild

* Support JSXSpreadAttribute

* Use correct span for empty expressions

* Improve formatting for macro names

* Move converters into separate files

* Make everything except the parse function only crate public

* use macros for JSX where possible

* Initial jsx rendering logic for simple cases

* Split classic and automatic mode

* Handle jsx without children

* Handle jsx with children

* Fix fragment rendering

* Prepare for fallback rendering

We still need to switch the arguments to old mode as well
for the fallback case.

* Reenable tests for now

* Update linting

* Improve JSX rendering and move to parent element

* Align classic attribute rendering with automatic

* Refine classic mode rendering

to make extraction easier

* Refine automatic mode rendering

* Fix automatic rendering

* Extract attribute rendering

* Extract shared functionality

* Move initialize and include functionality to shared base element

* Extract fragment opening rendering to JSXOpeningFragment

* Share rendering functionality with fragments

* Deconflict closing elements

* Handle native elements

* Add additional checks

* Ensure CLI supports presets

* Add JSX options to REPL

* Add documentation

* Improve coverage

* Fix local browser build

* Add jsx example

* Refine docs

---------

Signed-off-by: Martin Idel <[email protected]>
Co-authored-by: Martin Idel <[email protected]>
Co-authored-by: Felix Huttmann <[email protected]>
Co-authored-by: Alexander Droll <[email protected]>
Co-authored-by: Timo Peter <[email protected]>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Copy link

vercel bot commented Oct 4, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
rollup-docs-cn ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 8, 2024 3:14am

Copy link

netlify bot commented Oct 4, 2024

Deploy Preview for relaxed-alfajores-47dd1b failed.

Name Link
🔨 Latest commit 41a2f8a
🔍 Latest deploy log https://app.netlify.com/sites/relaxed-alfajores-47dd1b/deploys/6704a354cd08bf000811a2e5

@waynzh waynzh merged commit 72ce23b into master Oct 8, 2024
35 of 39 checks passed
@waynzh waynzh deleted the sync-5d91210d branch October 8, 2024 03:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants