1
0
mirror of https://github.com/tobspr/shapez.io.git synced 2026-09-24 21:04:57 +00:00

Remove source maps and adjust targets

This commit is contained in:
tobspr
2020-05-15 09:09:37 +02:00
parent b64bbc8132
commit c3e0cb5a46
5 changed files with 38 additions and 15 deletions

View File

@@ -4,18 +4,24 @@ module.exports = function (api) {
[
"@babel/preset-env",
{
targets: "android >= 4.4.4",
targets: "cover 99.5%",
useBuiltIns: "usage",
corejs: 3,
loose: true,
spec: false,
modules: "auto",
// debug: true
},
],
];
const plugins = [
"closure-elimination",
// var is faster than let and const!
[
"@babel/plugin-transform-block-scoping",
{
throwIfClosureRequired: false,
},
],
[
"@babel/plugin-transform-classes",
{