-
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
Commits on Oct 2, 2024
-
* 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]>
Configuration menu - View commit details
-
Copy full SHA for ca186ee - Browse repository at this point
Copy the full SHA ca186eeView commit details -
Configuration menu - View commit details
-
Copy full SHA for d3c000f - Browse repository at this point
Copy the full SHA d3c000fView commit details
Commits on Oct 4, 2024
-
chore(deps): lock file maintenance minor/patch updates (#5689)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for 5d91210 - Browse repository at this point
Copy the full SHA 5d91210View commit details -
Configuration menu - View commit details
-
Copy full SHA for da2a4c8 - Browse repository at this point
Copy the full SHA da2a4c8View commit details
Commits on Oct 8, 2024
-
Configuration menu - View commit details
-
Copy full SHA for de4f077 - Browse repository at this point
Copy the full SHA de4f077View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3bb481d - Browse repository at this point
Copy the full SHA 3bb481dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 41a2f8a - Browse repository at this point
Copy the full SHA 41a2f8aView commit details
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.