We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The text was updated successfully, but these errors were encountered:
已知的 BUG,在下一个版本我们会将 browser 和 node 版本的包分开打包。目前浏览器环境可以先按下方配置规避该问题。
// vite.config.ts import { defineConfig } from 'vite'; import vue from '@vitejs/plugin-vue'; import path from 'path'; export default defineConfig({ plugins: [vue()], resolve: { alias: { // jsdom 解析到空文件 jsdom: path.resolve(__dirname, 'src', 'empty.js'), }, }, });
empty.js 参考如下
// src/empty.js export const JSDOM = {};
Sorry, something went wrong.
issue 先关闭了,新版本(v0.6.1)实测已修复该问题。
No branches or pull requests
The text was updated successfully, but these errors were encountered: