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

chore(deps): update dependency rollup-plugin-swc3 to ^0.12.0 #1244

Merged
merged 1 commit into from
Dec 30, 2024

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Dec 30, 2024

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
rollup-plugin-swc3 ^0.8.0 -> ^0.12.0 age adoption passing confidence

Release Notes

SukkaW/rollup-plugin-swc (rollup-plugin-swc3)

v0.12.1

Compare Source

  • Fix: respect legacy decorators. See #​67

v0.12.0

Compare Source

  • The minimum required version has been bumped from 12 to 16.
  • Now when TypeScript 5 is detected in your projects will rollup-plugin-swc3 enable decorators by default (with decorator version 2022-03), otherwise it is depended by experimentalDecorators from tsconfig.json (and decorator version 2021-12 will be used). See #​65

v0.11.2

Compare Source

  • New feature viteMinify to use swc's minification in Vite.

    • When used, it will disable Vite's built-in minification and use swc's minification instead.
    import { defineConfig } from 'vite';
    import { viteMinify } from 'rollup-plugin-swc3'
    
    export default defineConfig({
      plugins: [
        viteMinify({
          // swc's minify option here
          // mangle: {}
          // compress: {}
        }),
      ],
    })

v0.11.1

Compare Source

  • Fix #​63
    • Previously, rollup-plugin-swc3 only handled relative compilerOptions.baseUrl when compilerOptions.paths is specified. It is fixed in #​64, now rollup-plugin-swc3 will handle relative compilerOptions.baseUrl as long as it is specified.

v0.11.0

Compare Source

  • Fix #​58
    • rollup-plugin-swc3 now will only perform module resolution inside the files specified in include and exclude options.
  • Replace rollup-swc-preserve-directives with rollup-preserve-directives

v0.10.4

Compare Source

  • Bump rollup-swc-preserve-directives to the latest version

v0.10.3

Compare Source

v0.10.2

Compare Source

  • Add warning message when tsconfig is invalid
  • Add rollup 4 official support

v0.10.1

Compare Source

  • Fix #​41
    • rollup-plugin-swc3 now will always provide baseUrl (resolve to an absolute path) to swc as long as the paths is specified in the tsconfig.json or jsconfig.json being read.

v0.10.0

Compare Source

v0.9.1

Compare Source

  • The support for 'use client' and 'use server' has been separated into a standalone rollup plugin rollup-swc-preserve-directives, maintained by @​huozhi and me. The previous preserveUseDirective named export is retained for the backward compatibility.

v0.9.0

Compare Source

  • Add support for bundling library for React Server Component with the proper 'use client' and 'use server' directives handling:

    • Merge duplicated directives in the final bundles
    • Multiple output chunks will have their own separated directives, useful when bundling client only code and server only code in different bundles.
    • Not enabled by default. manually opt-in by changing two lines of code in your rollup.config.js:
    // rollup.config.js
    // Import `preserveUseDirective` from `rollup-plugin-swc3`...
    - import { swc } from 'rollup-plugin-swc3';
    + import { swc, preserveUseDirective } from 'rollup-plugin-swc3';
    
    export default {
      input: 'xxxx',
      output: {},
      plugins: [
        swc(),
    +   preserveUseDirective()
      ];
    }

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

Copy link

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
dist/index.js 627 B (0%) 13 ms (0%) 60 ms (+104.88% 🔺) 72 ms

@codecov-commenter
Copy link

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 8.85%. Comparing base (9aa55f9) to head (b92900a).

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@          Coverage Diff           @@
##           master   #1244   +/-   ##
======================================
  Coverage    8.85%   8.85%           
======================================
  Files          57      57           
  Lines        1897    1897           
  Branches       24      24           
======================================
  Hits          168     168           
  Misses       1729    1729           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@dangreen dangreen merged commit 032b642 into master Dec 30, 2024
7 checks passed
@dangreen dangreen deleted the renovate/rollup-plugin-swc3-0.x branch December 30, 2024 19:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants