-
Notifications
You must be signed in to change notification settings - Fork 41
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
Conversation
This file contains 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
* 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>
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
❌ Deploy Preview for relaxed-alfajores-47dd1b failed.
|
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.
此 PR 自动生成。
合并 rollup/rollup 的修改至本仓库(@ 5d91210)
以下文件存在冲突,可能需要重新翻译:
请解决所有冲突后提交到此 pull request,可直接在 Github 修改、切换到 sync-5d91210d 分支进行修改或者使用 Github Desktop 拉取此 pr 修改并提交。
禁止使用 Squash Merge 来合并此 Pull Request!
使用该操作会导致上游仓库的内容丢失,并致使下一次合并产生冲突。