"use strict";
module.exports = class {
    constructor(options) {
        this.options = options;
    }
    apply({ babelHooks }) {
        babelHooks.babelPresetHook.tap('preset', ((presets) => {
            return presets.concat([
                require.resolve('@babel/preset-react'),
                require.resolve('@babel/preset-typescript')
            ]);
        }));
        babelHooks.babelPluginHook.tap('plugin', ((plugins) => {
            return plugins.concat([
                [
                    require.resolve("@babel/plugin-proposal-decorators"),
                    {
                        legacy: true
                    }
                ],
                require.resolve("@babel/plugin-proposal-class-properties")
            ]);
        }));
    }
};
//# sourceMappingURL=index.js.map