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

使用cjs导入dts组件报错,是还没有支持吗? #39

Closed
JobinJia opened this issue Nov 3, 2021 · 1 comment
Closed

使用cjs导入dts组件报错,是还没有支持吗? #39

JobinJia opened this issue Nov 3, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@JobinJia
Copy link

JobinJia commented Nov 3, 2021

eg:
// build.js

const { defineConfig, build } = require('vite')
const dts = require('vite-plugin-dts')

const baseConfig = defineConfig({
    plugins: [ vue(), vueJsx(), dts() ]
})

then
image

@qmhc qmhc added the bug Something isn't working label Nov 3, 2021
@qmhc
Copy link
Owner

qmhc commented Nov 3, 2021

临时解决方案:

const dts = require('vite-plugin-dts')
dts.default()

@qmhc qmhc closed this as completed in cc5aff9 Nov 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants