{
    "presets": [
        [
            "@babel/preset-env",
            {
                "targets": 
                {
                    "edge": "17",
                    "firefox": "60",
                    "chrome": "67",
                    "ie": "11"
                }
            }
          ],
          "@babel/preset-react",
          "@babel/preset-typescript",
          "@babel/preset-flow"
      ],
    "plugins": [
        ["@babel/plugin-proposal-decorators", {"legacy": true}],    // 支持装饰器写法
        ["@babel/plugin-proposal-class-properties", {"loose": true}],
        "@babel/plugin-transform-runtime",
        "@babel/plugin-transform-arrow-functions",
        "babel-plugin-add-module-exports",     // 支持export default 这样的 es 模块写法
        "@babel/plugin-transform-modules-umd",
        "@babel/plugin-proposal-export-namespace-from",
        "@babel/plugin-proposal-function-sent",
        "@babel/plugin-proposal-json-strings",
        "@babel/plugin-proposal-numeric-separator",
        "@babel/plugin-proposal-throw-expressions",
        "@babel/plugin-syntax-dynamic-import",
        "@babel/plugin-syntax-jsx",
        "@babel/plugin-proposal-optional-chaining",
        "@babel/plugin-proposal-nullish-coalescing-operator"
    ]
}