.babelrc 660 Bytes
Newer Older
Phyks's avatar
Phyks committed
1
{
Phyks's avatar
Phyks committed
2 3 4 5 6
    "env": {
        "test": {
            "presets": [
                "@babel/preset-env"
            ],
Phyks's avatar
Phyks committed
7 8 9 10 11 12 13 14 15
            "plugins": [
                "@babel/plugin-transform-modules-commonjs",
                ["module-resolver", {
                    "root": ["./src"],
                    "alias": {
                        "@": "./src"
                    }
                }]
            ]
Phyks's avatar
Phyks committed
16 17
        }
    },
18
    "presets": [
19 20 21 22 23 24 25 26 27
        [
            "@babel/preset-env",
            {
                "modules": false,
                "useBuiltIns": "usage"
            }
        ]
    ],
    "plugins": [
Phyks's avatar
Phyks committed
28
        "@babel/plugin-syntax-dynamic-import"
29
    ]
Phyks's avatar
Phyks committed
30
}