mirror of
https://github.com/tobspr/shapez.io.git
synced 2026-09-24 21:04:57 +00:00
Initial commit
This commit is contained in:
41
gulp/babel.config.js
Normal file
41
gulp/babel.config.js
Normal file
@@ -0,0 +1,41 @@
|
||||
module.exports = function (api) {
|
||||
api.cache(true);
|
||||
const presets = [
|
||||
[
|
||||
"@babel/preset-env",
|
||||
{
|
||||
targets: "android >= 4.4.4",
|
||||
useBuiltIns: "usage",
|
||||
corejs: 3,
|
||||
loose: true,
|
||||
spec: false,
|
||||
modules: "auto",
|
||||
// debug: true
|
||||
},
|
||||
],
|
||||
];
|
||||
const plugins = [
|
||||
"closure-elimination",
|
||||
[
|
||||
"@babel/plugin-transform-classes",
|
||||
{
|
||||
loose: true,
|
||||
},
|
||||
],
|
||||
];
|
||||
return {
|
||||
presets,
|
||||
plugins,
|
||||
highlightCode: true,
|
||||
sourceType: "module",
|
||||
sourceMaps: false,
|
||||
parserOpts: {},
|
||||
only: ["../src/js"],
|
||||
generatorOpts: {
|
||||
retainLines: false,
|
||||
compact: true,
|
||||
minified: true,
|
||||
comments: true,
|
||||
},
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user