Skip to content

fix(ssr): hoist re-exports with imports#12530

Merged
patak-cat merged 1 commit intomainfrom
fix-ssr-export-hoist
Mar 22, 2023
Merged

fix(ssr): hoist re-exports with imports#12530
patak-cat merged 1 commit intomainfrom
fix-ssr-export-hoist

Conversation

@bluwy
Copy link
Member

@bluwy bluwy commented Mar 22, 2023

Description

Supersedes #12527
Should fix ecosystem-ci for nuxt and plugin-react

When hoisting the import statement generated by re-exports by Vite, hoist the other re-exports code together with the import statement.

The snapshot diff should show how this works now.

Additional context

Should also fix the test at #12528, which I've verified locally.

cc @sapphi-red


What is the purpose of this pull request?

  • Bug fix
  • New Feature
  • Documentation update
  • Other

Before submitting the PR, please make sure you do the following

  • Read the Contributing Guidelines.
  • Read the Pull Request Guidelines and follow the PR Title Convention.
  • Check that there isn't already a PR that solves the problem the same way to avoid creating a duplicate.
  • Provide a description in this PR that addresses what the PR is solving, or reference the issue that it solves (e.g. fixes #123).
  • Ideally, include relevant tests that fail without this PR but pass with it.

@bluwy bluwy added p3-minor-bug An edge case that only affects very specific usage (priority) feat: ssr labels Mar 22, 2023
@bolt-new-by-stackblitz
Copy link

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@bluwy bluwy force-pushed the fix-ssr-export-hoist branch from 46a01ef to cca3481 Compare March 22, 2023 07:51
@bluwy bluwy changed the title Fix ssr export hoist fix(ssr): hoist re-exports with imports Mar 22, 2023
@patak-cat
Copy link
Member

/ecosystem-ci run

@vite-ecosystem-ci
Copy link

vite-ecosystem-ci bot commented Mar 22, 2023

📝 Ran ecosystem CI: Open

suite result
astro ❌ failure
histoire ❌ failure
iles ✅ success
ladle ✅ success
laravel ✅ success
marko ✅ success
nuxt ✅ success
previewjs ✅ success
qwik ✅ success
rakkas ✅ success
sveltekit ✅ success
vite-plugin-ssr ✅ success
vite-plugin-react ✅ success
vite-plugin-react-pages ✅ success
vite-plugin-react-swc ✅ success
vite-plugin-svelte ✅ success
vite-plugin-vue ✅ success
vite-setup-catalogue ✅ success
vitepress ✅ success
vitest ✅ success
windicss ✅ success

@patak-cat patak-cat merged commit 45549e4 into main Mar 22, 2023
@patak-cat patak-cat deleted the fix-ssr-export-hoist branch March 22, 2023 08:36
@sapphi-red
Copy link
Member

Oh, that was quick. Awesome 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feat: ssr p3-minor-bug An edge case that only affects very specific usage (priority)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants