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

Commits on Oct 2, 2024

  1. Introduce JSX support (#5668)

    * 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]>
    5 people authored Oct 2, 2024
    Configuration menu
    Copy the full SHA
    ca186ee View commit details
    Browse the repository at this point in the history
  2. 4.24.0

    lukastaegert committed Oct 2, 2024
    Configuration menu
    Copy the full SHA
    d3c000f View commit details
    Browse the repository at this point in the history

Commits on Oct 4, 2024

  1. chore(deps): lock file maintenance minor/patch updates (#5689)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Oct 4, 2024
    Configuration menu
    Copy the full SHA
    5d91210 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    da2a4c8 View commit details
    Browse the repository at this point in the history

Commits on Oct 8, 2024

  1. docs(cn): resolve conflicts

    waynzh committed Oct 8, 2024
    Configuration menu
    Copy the full SHA
    de4f077 View commit details
    Browse the repository at this point in the history
  2. docs(cn): translate jsx

    waynzh committed Oct 8, 2024
    Configuration menu
    Copy the full SHA
    3bb481d View commit details
    Browse the repository at this point in the history
  3. docs: resolve conflicts

    waynzh committed Oct 8, 2024
    Configuration menu
    Copy the full SHA
    41a2f8a View commit details
    Browse the repository at this point in the history