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 @vanilla-extract/vite-plugin to v5 #972

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ganta-renovate[bot]
Copy link
Contributor

This PR contains the following updates:

Package Type Update Change
@vanilla-extract/vite-plugin (source) devDependencies major 4.0.20 -> 5.0.0

Release Notes

vanilla-extract-css/vanilla-extract (@​vanilla-extract/vite-plugin)

v5.0.0

Compare Source

Major Changes
  • #​1537 7810b7c Thanks @​askoufis! - Change the plugin name from "vanilla-extract" to the more conventional "vite-plugin-vanilla-extract"

  • #​1529 d5b6e70 Thanks @​askoufis! - Update vite peer dependency range to ^5.0.0 || ^6.0.0

    BREAKING CHANGE: Vite 4 is no longer supported. Please upgrade to at least Vite 5.

  • #​1537 7810b7c Thanks @​askoufis! - BREAKING CHANGE: User-configured vite plugins are no longer forwarded through to the Vanilla Extract compiler by default. This should not affect most consumers.

    Previously, all vite plugins except for a select few incompatible plugins were forwarded through. This resulted in a constant game of whack-a-mole as new plugins were added to the list of incompatible plugins as issues were discovered.

    Framework-specific plugins, as well as plugins that handle assets and build output, tend not to be relevant to Vanilla Extract code, and in some cases cause more harm than good.

    For that reason, in this release only the vite-tsconfig-paths plugin is fowarded through by default. This is a relatively common plugin that is know to be compatible with the Vanilla Extract compiler.

    In most cases users should not need to forward any additional plugins through to the Vanilla Extract compiler. However, if such a case arises, a plugin filter function can be provided via the unstable_pluginFilter option:

    // vite.config.ts
    
    import { vanillaExtractPlugin } from '@​vanilla-extract/vite-plugin';
    import { vitePluginFoo } from 'vite-plugin-foo';
    
    export default defineConfig({
      plugins: [
        vitePluginFoo(),
        vanillaExtractPlugin({
          // Only forward the `vite-plugin-foo` plugin through to the Vanilla Extract compiler
          unstable_pluginFilter: ({ name, mode }) =>
            plugin.name === 'vite-plugin-foo'
        })
      ]
    });

    When providing a plugin filter function, the vite-tsconfig-paths plugin will no longer be forwarded through by default. If you wish to forward this plugin, you must include it in your filter function.

    NOTE: The unstable_pluginFilter API is considered unstable and may be changed or removed without notice in a future non-major version.

Patch Changes

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 has been generated by Renovate Bot.

@ganta-renovate ganta-renovate bot added dependencies Pull requests that update a dependency file renovate Created by Renovate labels Jan 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file renovate Created by Renovate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants