text: module.exports = api => {
    const isTest = api.env("test");
    return {
      presets: [
        [
          "@babel/preset-env",
          {
            targets: isTest
              ? {
                  node: "current"
                }
              : {
                  ie: "11"
                }
          }
        ]
      ]
    };
  };
  