src/main.js
// ESModule script we add a 'nomodule' attribute
ESModule script we add a 'nomodule' attribute
ESModule script we add a ' nomodule ' attribute
function hasMatchingModule(file) {
    const noExt = file.substring(0, file.length - 3);
    const testMjs = (noExt + ".mjs").toLowerCase();
    const testEs2015 = (noExt + ".es2015.js").toLowerCase();
    const matches = paths.filter((t) => {
      const lc = t.toLowerCase();
      return lc === testMjs || lc === testEs2015;
    });
    return matches.length > 0;
  }
function hasMatchingModule ( file ) { const noExt = file . substring ( 0 , file . length - 3 ) ; const testMjs = ( noExt + ".mjs" ) . toLowerCase ( ) ; const testEs2015 = ( noExt + ".es2015.js" ) . toLowerCase ( ) ; const matches = paths . filter ( ( t ) => { const lc = t . toLowerCase ( ) ; return lc === testMjs || lc === testEs2015 ; } ) ; return matches . length > 0 ; }
ESModule script we add a 'nomodule' attribute
ESModule script we add a ' nomodule ' attribute