tabster/babel.config.js

25 строки
619 B
JavaScript
Исходник Обычный вид История

module.exports = (api) => {
const isTest = api.env("test");
const presetEnv = isTest
? ["@babel/preset-env", { targets: { node: "current" } }]
: [
"@babel/preset-env",
{
modules: false,
loose: true,
},
];
return {
presets: ["@babel/preset-typescript", presetEnv],
plugins: [
[
"@babel/plugin-transform-react-jsx",
{ pragma: "BroTest.createElementString" },
],
"babel-plugin-annotate-pure-calls",
],
};
};