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: rstackjs/rsbuild-plugin-tailwindcss
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.0.3
Choose a base ref
...
head repository: rstackjs/rsbuild-plugin-tailwindcss
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v0.1.0
Choose a head ref
  • 3 commits
  • 11 files changed
  • 1 contributor

Commits on Dec 28, 2024

  1. feat: support tailwindcss v3.1.x and v3.2.y (#21)

    ### Summary
    
    Support Tailwind CSS v3.1 and Tailwind CSS v3.2.
    
    ---
    
    ### Details
    
    Since Tailwind CSS support using ESM configuration in V3.3, we need to
    use CJS configuration before that.
    
    As mentioned in
    #7 (comment),
    we use `readFile` + `require.resolve` to get the version of
    `tailwindcss/package.json`.
    
    - If `satisfies(version, ^3.3.0)`, we will generate ESM configuration to
    support both ESM and CJS.
    - Else, we generate CJS configuration.
    
    ---
    
    ### Test plan
    
    We setup two new entries in the testing matrix
    
    - tailwindcss v3.1.0 with Ubuntu
    - tailwindcss v3.1.0 with Windows
    
    As you can see, the test is failing at
    [0e05c6a](0e05c6a).
    
    And after the fix is landed in
    [e783415](e783415),
    the test for old tailwindcss is passing.
    
    ---
    
    ### Related links
    
    close: #18 
    
    - Tailwind CSS v3.3:
      - https://github.com/tailwindlabs/tailwindcss/releases/tag/v3.3.0
      - tailwindlabs/tailwindcss#10785
    - Tailwind CSS v3.2
      - https://github.com/tailwindlabs/tailwindcss/releases/tag/v3.2.0
    - Tailwind CSS v3.1
      - https://github.com/tailwindlabs/tailwindcss/releases/tag/v3.1.0
    colinaaa authored Dec 28, 2024
    Configuration menu
    Copy the full SHA
    34eff9d View commit details
    Browse the repository at this point in the history
  2. fix!: change peer of tailwindcss to ^3.1.0 (#23)

    >[!WARNING]
    >
    > Please note that this is a **BREAKING CHANGE**.
    
    As the test result of #21 shows that we does not support Tailwind CSS
    v3.0.x. Since it does not have `config` option yet.
    
    And v3.1.x and v3.2.y will be supported after #21 is merged.
    colinaaa authored Dec 28, 2024
    Configuration menu
    Copy the full SHA
    6807507 View commit details
    Browse the repository at this point in the history
  3. chore: release v0.1.0 (#30)

    colinaaa authored Dec 28, 2024
    Configuration menu
    Copy the full SHA
    ae2a83b View commit details
    Browse the repository at this point in the history
Loading