fix: build

This commit is contained in:
Myzel394 2023-02-19 08:34:47 +01:00
parent be2e09a90c
commit c5bfe59e83
No known key found for this signature in database
GPG Key ID: 79CC92F37B3E1A2B

View File

@ -12,6 +12,20 @@ export default defineConfig({
}, },
}, },
build: { build: {
commonjsOptions: {
defaultIsModuleExports(id) {
try {
const module = require(id)
if (module?.default) {
return false
}
return "auto"
} catch (error) {
return "auto"
}
},
transformMixedEsModules: true,
},
minify: false, minify: false,
}, },
}) })