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

fix(vant): supports SSR #318

Merged
merged 2 commits into from
Feb 24, 2022
Merged

fix(vant): supports SSR #318

merged 2 commits into from
Feb 24, 2022

Conversation

chengzhuo5
Copy link
Contributor

No description provided.

@chengzhuo5 chengzhuo5 changed the title fix: 修复vant不支持SSR的问题 fix: vant supports SSR Feb 24, 2022
src/core/resolvers/vant.ts Outdated Show resolved Hide resolved
@@ -1,6 +1,9 @@
import type { ComponentResolver, SideEffectsInfo } from '../../types'
import { kebabCase } from '../utils'

const isServer = Boolean(process.env.SSR || process.env.SSG || process.env.VITE_SSR || process.env.VITE_SSG)
Copy link
Member

Choose a reason for hiding this comment

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

We could move this to utils

@antfu antfu changed the title fix: vant supports SSR fix(vant): supports SSR Feb 24, 2022
@antfu antfu merged commit 9cd01e2 into unplugin:main Feb 24, 2022
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