mirror of
https://github.com/Myzel394/kleckrelay-website.git
synced 2025-06-19 07:55:25 +02:00
fix: build
This commit is contained in:
parent
be2e09a90c
commit
c5bfe59e83
@ -12,6 +12,20 @@ export default defineConfig({
|
||||
},
|
||||
},
|
||||
build: {
|
||||
commonjsOptions: {
|
||||
defaultIsModuleExports(id) {
|
||||
try {
|
||||
const module = require(id)
|
||||
if (module?.default) {
|
||||
return false
|
||||
}
|
||||
return "auto"
|
||||
} catch (error) {
|
||||
return "auto"
|
||||
}
|
||||
},
|
||||
transformMixedEsModules: true,
|
||||
},
|
||||
minify: false,
|
||||
},
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user