-
By default, vite not generate export default defineConfig({
plugins: [vue()],
test: {
environment: 'happy-dom',
},
build: {
lib: {
entry: './src/main.ts',
formats: ['es', 'umd'],
name: pkg.name,
},
rollupOptions: {
external: ['vue'],
output: {
globals: {
vue: 'Vue',
},
},
},
},
}) |
Beta Was this translation helpful? Give feedback.
Answered by
ElMassimo
Mar 29, 2022
Replies: 1 comment 1 reply
-
Try one of the following plugins: Here's an example library that uses |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
patak-dev
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Try one of the following plugins:
Here's an example library that uses
vite-dts
.