react/node_modules/@webpack-cli/generators/lib/loader-generator.js
/**
 * Formats a string into webpack loader format
 * (eg: 'style-loader', 'raw-loader')
 *
 * @param {string} name A loader name to be formatted
 * @returns {string} The formatted string
 */
Formats a string into webpack loader format

@param {string} name A loader name to be formatted
@returns {string} The formatted string
Formats a string into webpack loader format @param { string } name A loader name to be formatted @returns { string } The formatted string
function makeLoaderName(name) {
    name = helpers_1.toKebabCase(name);
    if (!/loader$/.test(name)) {
        name += '-loader';
    }
    return name;
}
function makeLoaderName ( name ) { name = helpers_1 . toKebabCase ( name ) ; if ( ! / loader$ / . test ( name ) ) { name += '-loader' ; } return name ; }
Formats a string into webpack loader format
 (eg: 'style-loader', 'raw-loader')
Formats a string into webpack loader format ( eg : ' style - loader ' ' raw - loader ' )