_checkModuleTest(test, module, context) {
        if (test === undefined) return true;
        if (typeof test === 'function') {
            return test(module, context);
        }
        if (typeof test === 'boolean') return test;
        if (typeof test === 'string') {
            const name = module.nameForCondition();

            return (name && name.startsWith(test)) || false;
        }
        if (test instanceof RegExp) {
            const name = module.nameForCondition();

            return (name && test.test(name)) || false;
        }

        return false;
    }
Check to see if a chunk should be included

NOTE: This repeats the code from the SplitChunksPlugin checkTest function
This is for internal use only and may be changed or removed at any time

@internal

@param {undefined|boolean|string|RegExp|Function} test test option
@param {import("webpack").Module} module the module
@param {any} context context object
@returns {boolean} true, if the module should be selected