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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user