Skip to content
This repository has been archived by the owner on Apr 6, 2023. It is now read-only.

fix(vite): set transform mode for vite-node #5854

Merged
merged 1 commit into from
Jul 14, 2022
Merged

Conversation

antfu
Copy link
Member

@antfu antfu commented Jul 12, 2022

close nuxt/nuxt#14193

Vite Node by default only passes ssr: true when transforming js-like modules. For other files like .vue, it transforms into client mode to preserve the reactivity (e.g. for testing). In our case, we don't need the capability since we only do SSR.

@netlify
Copy link

netlify bot commented Jul 12, 2022

Deploy Preview for nuxt3-docs canceled.

Name Link
🔨 Latest commit 77241fa
🔍 Latest deploy log https://app.netlify.com/sites/nuxt3-docs/deploys/62cd700532b31d000867e67c

@pi0 pi0 changed the title fix(vite-node): transform mode of Vue files fix(vite): set transform mode for vite-node Jul 14, 2022
@pi0 pi0 merged commit 4ba71c6 into main Jul 14, 2022
@pi0 pi0 deleted the fix/vite-node-transform-mode branch July 14, 2022 14:00
pi0 pushed a commit that referenced this pull request Jul 14, 2022
@pi0 pi0 mentioned this pull request Jul 15, 2022
@danielroe danielroe added the 3.x label Jan 19, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

weird behavior with vite-node
3 participants