Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: rollup/rollup
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v4.23.0
Choose a base ref
...
head repository: rollup/rollup
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v4.24.0
Choose a head ref
  • 2 commits
  • 352 files changed
  • 6 contributors

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
Loading