applyRules(rules, component) {
        const newRules = component.webpackRules() || [];

        rules.push(...concat(newRules));
    }
Apply the webpack rules for the component.

@param {import('webpack').RuleSetRule[]} rules
@param {Component} component