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

Svelte: Support @sveltejs/vite-plugin-svelte v5 #29731

Merged
merged 2 commits into from
Nov 28, 2024

Conversation

JReinhold
Copy link
Contributor

@JReinhold JReinhold commented Nov 28, 2024

Related: storybookjs/addon-svelte-csf#237

What I did

Broaden peer dependency range to support the recently released v5 of @sveltejs/vite-plugin-svelte

Checklist for Contributors

Testing

The changes in this PR are covered in the following automated tests:

  • stories
  • unit tests
  • integration tests
  • end-to-end tests

Manual testing

This section is mandatory for all contributions. If you believe no manual test is necessary, please state so explicitly. Thanks!

Documentation

  • Add or update documentation reflecting your changes
  • If you are deprecating/removing a feature, make sure to update
    MIGRATION.MD

Checklist for Maintainers

  • When this PR is ready for testing, make sure to add ci:normal, ci:merged or ci:daily GH label to it to run a specific set of sandboxes. The particular set of sandboxes can be found in code/lib/cli-storybook/src/sandbox-templates.ts

  • Make sure this PR contains one of the labels below:

    Available labels
    • bug: Internal changes that fixes incorrect behavior.
    • maintenance: User-facing maintenance tasks.
    • dependencies: Upgrading (sometimes downgrading) dependencies.
    • build: Internal-facing build tooling & test updates. Will not show up in release changelog.
    • cleanup: Minor cleanup style change. Will not show up in release changelog.
    • documentation: Documentation only changes. Will not show up in release changelog.
    • feature request: Introducing a new feature.
    • BREAKING CHANGE: Changes that break compatibility in some way with current major version.
    • other: Changes that don't fit in the above categories.

🦋 Canary release

This PR does not have a canary release associated. You can request a canary release of this pull request by mentioning the @storybookjs/core team here.

core team members can create a canary release here or locally with gh workflow run --repo storybookjs/storybook canary-release-pr.yml --field pr=<PR_NUMBER>

name before after diff z %
createSize 0 B 0 B 0 B - -
generateSize 77.7 MB 77.7 MB 0 B -0.9 0%
initSize 143 MB 143 MB 0 B -0.9 0%
diffSize 65.2 MB 65.2 MB 0 B 0.96 0%
buildSize 6.83 MB 6.83 MB 0 B 1.53 0%
buildSbAddonsSize 1.51 MB 1.51 MB 0 B 1.12 0%
buildSbCommonSize 195 kB 195 kB 0 B - 0%
buildSbManagerSize 1.86 MB 1.86 MB 0 B 1.42 0%
buildSbPreviewSize 271 kB 271 kB 0 B 0.99 0%
buildStaticSize 0 B 0 B 0 B - -
buildPrebuildSize 3.84 MB 3.84 MB 0 B 1.37 0%
buildPreviewSize 3 MB 3 MB 0 B 4.31 0%
testBuildSize 0 B 0 B 0 B - -
testBuildSbAddonsSize 0 B 0 B 0 B - -
testBuildSbCommonSize 0 B 0 B 0 B - -
testBuildSbManagerSize 0 B 0 B 0 B - -
testBuildSbPreviewSize 0 B 0 B 0 B - -
testBuildStaticSize 0 B 0 B 0 B - -
testBuildPrebuildSize 0 B 0 B 0 B - -
testBuildPreviewSize 0 B 0 B 0 B - -
name before after diff z %
createTime 22.5s 14.2s -8s -306ms -0.31 -58.4%
generateTime 22.4s 22.2s -233ms 0.15 -1%
initTime 16s 13.7s -2s -308ms -0.31 -16.8%
buildTime 8.8s 8.2s -597ms -0.56 -7.2%
testBuildTime 0ms 0ms 0ms - -
devPreviewResponsive 5.8s 5.1s -640ms -0.73 -12.4%
devManagerResponsive 3.3s 3.5s 138ms -0.35 3.9%
devManagerHeaderVisible 517ms 540ms 23ms -0.42 4.3%
devManagerIndexVisible 588ms 610ms 22ms -0.36 3.6%
devStoryVisibleUncached 923ms 1.1s 221ms 0.06 19.3%
devStoryVisible 587ms 608ms 21ms -0.32 3.5%
devAutodocsVisible 489ms 481ms -8ms -0.32 -1.7%
devMDXVisible 470ms 471ms 1ms -0.51 0.2%
buildManagerHeaderVisible 478ms 509ms 31ms -0.54 6.1%
buildManagerIndexVisible 492ms 521ms 29ms -0.57 5.6%
buildStoryVisible 473ms 508ms 35ms -0.53 6.9%
buildAutodocsVisible 420ms 439ms 19ms -0.44 4.3%
buildMDXVisible 391ms 441ms 50ms -0.43 11.3%

Greptile Summary

Updates peer dependency range for @sveltejs/vite-plugin-svelte to include version 5.0.0 and adds sandbox configuration support for Vite 5 compatibility in Svelte templates.

  • Updated peerDependencies to include ^5.0.0 for @sveltejs/vite-plugin-svelte in code/frameworks/svelte-vite/package.json
  • Added Svelte templates (svelte-vite/default-js, svelte-vite/default-ts, svelte-kit/skeleton-ts) to sandboxesNeedingWorkarounds array
  • Added key parameter to addWorkaroundResolutions function for sandbox-specific handling
  • Extended Vite workarounds to all Vite-based templates via key.includes('vite') check

💡 (3/5) Reply to the bot's comments like "Can you suggest a fix for this @greptileai?" or ask follow-up questions!

Copy link

nx-cloud bot commented Nov 28, 2024

☁️ Nx Cloud Report

CI is running/has finished running commands for commit ce85320. As they complete they will appear below. Click to see the status, the terminal output, and the build insights.

📂 See all runs for this CI Pipeline Execution


✅ Successfully ran 1 target

Sent with 💌 from NxCloud.

@JReinhold JReinhold added the ci:daily Run the CI jobs that normally run in the daily job. label Nov 28, 2024
@JReinhold JReinhold marked this pull request as ready for review November 28, 2024 13:16
@JReinhold JReinhold requested a review from yannbf November 28, 2024 13:16
Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

2 file(s) reviewed, no comment(s)
Edit PR Review Bot Settings | Greptile

Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

2 file(s) reviewed, no comment(s)
Edit PR Review Bot Settings | Greptile

@yannbf yannbf merged commit e870c8c into next Nov 28, 2024
108 of 112 checks passed
@yannbf yannbf deleted the jeppe/support-svelte-vite-plugin-5 branch November 28, 2024 14:09
@yannbf yannbf added the patch:yes Bugfix & documentation PR that need to be picked to main branch label Nov 29, 2024
@github-actions github-actions bot mentioned this pull request Nov 29, 2024
14 tasks
yannbf added a commit that referenced this pull request Nov 29, 2024
…plugin-5

Svelte: Support `@sveltejs/vite-plugin-svelte` v5
(cherry picked from commit e870c8c)
yannbf added a commit that referenced this pull request Nov 29, 2024
…plugin-5

Svelte: Support `@sveltejs/vite-plugin-svelte` v5
(cherry picked from commit e870c8c)
@github-actions github-actions bot added the patch:done Patch/release PRs already cherry-picked to main/release branch label Nov 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
builder-vite ci:daily Run the CI jobs that normally run in the daily job. dependencies patch:done Patch/release PRs already cherry-picked to main/release branch patch:yes Bugfix & documentation PR that need to be picked to main branch svelte
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants