"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.babelConfig = void 0;
const babel_1 = require("./babel");
exports.babelConfig = babel_1.babel({
    comments: true,
    minified: false,
    retainLines: true,
    shouldPrintComment: () => true,
    caller: {
        target: 'web',
    },
    presets: [
        [
            require.resolve('@babel/preset-env'),
            {
                targets: {
                    esmodules: true,
                },
                modules: false,
                bugfixes: true,
            },
        ],
        [
            require.resolve('@babel/preset-react'),
            {
                useBuiltIns: true,
            },
        ],
        [
            require.resolve('@babel/preset-typescript'),
            {
                isTSX: true,
                allExtensions: true,
            },
        ],
    ],
    plugins: [
        '@babel/plugin-proposal-class-properties',
        '@babel/plugin-syntax-dynamic-import',
        '@loadable/babel-plugin',
    ].map((p) => require.resolve(p)),
});
