fedimovies-web/vue.config.js
silverpill 89ccba3201 Fix OOM errors during compilation
Disabled "modern" builds because they significantly increase memory consumption.
Disabled type checker during production builds.
2022-05-21 00:04:21 +00:00

20 lines
497 B
JavaScript

module.exports = {
chainWebpack: (config) => {
// Enable reactivity transform
// https://github.com/vuejs/rfcs/discussions/369
config.module
.rule("vue")
.use("vue-loader")
.tap((options) => {
return {
...options,
reactivityTransform: true,
}
})
if (process.env.NODE_ENV === "production") {
// Type checker consumes too much memory
config.plugins.delete("fork-ts-checker")
}
},
lintOnSave: false,
}