nl_tokens: / * This sections - loader has one responsibility : adding import statements for the section modules .
pl_tokens: function addModuleImportToSections ( { sections , shouldSplit , onlyIsomorphic } ) { sections . forEach ( section => { if ( onlyIsomorphic && ! section . isomorphic ) { return ; } const loaderFunction = ` ${ section . <mask> } ${ section . module } ` ; section . load = shouldSplit ? loaderFunction . replace ( 'require' , 'import' ) : loaderFunction ; } ) ; // strip the outer quotation marks from the load statement const sectionStringsWithImportFns = JSON . stringify ( sections , null , '\t' ) . replace ( / load": "(.*)" / g , 'load": $1' ) ; const sectionsFile = ` ${ sectionStringsWithImportFns } ` ; return sectionsFile ; }