Updating js plugins

This commit is contained in:
ahwelp
2023-01-24 20:31:23 +00:00
parent b1eb0a7a56
commit 2b6ddf9569
602 changed files with 109412 additions and 18 deletions
+23
View File
@@ -0,0 +1,23 @@
module.exports = function (api) {
api.cache(true);
const presets = [
[
"@babel/preset-env",
{
corejs: {
version: "3.8",
proposals: false,
},
useBuiltIns: "usage",
// The target is specified in the package.json "browserslist"
},
],
];
const plugins = [
["@babel/plugin-transform-for-of", { allowArrayLike: true }],
];
return {
presets,
plugins,
};
};