dist/rollup-plugin-pug.js
function moveImports(code, imports) {
    return code.replace(RE_IMPORTS, function (_, indent, imprt) {
        imprt = imprt.trim();
        if (imprt.slice(-1) !== ';') {
            imprt += ';';
        }
        imports.push(imprt);
        return indent; // keep only the indentation
    });
}
function moveImports(code, imports) {
    return code.replace(RE_IMPORTS, function (_, indent, imprt) {
        imprt = imprt.trim();
        if (imprt.slice(-1) !== ';') {
            imprt += ';';
        }
        imports.push(imprt);
        return indent; // keep only the indentation
    });
}
function moveImports ( code , imports ) { return code . replace ( RE_IMPORTS , function ( _ , indent , imprt ) { imprt = imprt . trim ( ) ; if ( imprt . slice ( - 1 ) !== ';' ) { imprt += ';' ; } imports . push ( imprt ) ; return indent ; // keep only the indentation
 } ) ; }
Adds an import directive to the collected imports.

@param code Procesing code
@param imports Collected imports
Adds an import directive to the collected imports .