"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const webpack_blocks_1 = require("webpack-blocks");
const micro_core_1 = require("@vtex/micro-core");
const web_1 = require("../utils/web");
class Bundle extends micro_core_1.BundleHook {
    constructor() {
        super(...arguments);
        this.getWebpackConfig = async (config, target) => {
            const block = await web_1.getWebConfig(this.project, target);
            return webpack_blocks_1.group([config, ...block]);
        };
    }
}
exports.default = Bundle;
