1
0
mirror of https://github.com/tobspr/shapez.io.git synced 2026-09-25 13:25:23 +00:00

Fix es5 builds

This commit is contained in:
tobspr
2022-06-16 11:28:37 +02:00
parent bf5199d77a
commit 2e1271ecb7
6 changed files with 41 additions and 21 deletions

View File

@@ -14,18 +14,18 @@ module.exports = function (api) {
],
];
const plugins = [
// "closure-elimination",
"closure-elimination",
// var is faster than let and const!
// [
// "@babel/plugin-transform-block-scoping",
// {
// throwIfClosureRequired: false,
// },
// ],
[
"@babel/plugin-transform-block-scoping",
{
throwIfClosureRequired: false,
},
],
[
"@babel/plugin-transform-classes",
{
loose: false,
loose: true,
},
],
];
@@ -33,10 +33,9 @@ module.exports = function (api) {
presets,
plugins,
highlightCode: true,
sourceType: "module",
sourceType: "unambiguous",
sourceMaps: false,
parserOpts: {},
// only: ["../src/js"],
generatorOpts: {
retainLines: false,
compact: true,