Fix OOM errors during compilation

Disabled "modern" builds because they significantly increase memory consumption.
Disabled type checker during production builds.
This commit is contained in:
silverpill 2022-05-20 20:38:41 +00:00
parent cfb7bf26c1
commit 89ccba3201
2 changed files with 5 additions and 1 deletions

View file

@ -6,7 +6,7 @@
"private": true,
"scripts": {
"serve": "vue-cli-service serve",
"build": "vue-cli-service build",
"build": "vue-cli-service build --no-module",
"test:unit": "vue-cli-service test:unit",
"test": "npm run test:unit",
"lint:js": "vue-cli-service lint --no-fix",

View file

@ -11,6 +11,10 @@ module.exports = {
reactivityTransform: true,
}
})
if (process.env.NODE_ENV === "production") {
// Type checker consumes too much memory
config.plugins.delete("fork-ts-checker")
}
},
lintOnSave: false,
}