function startCreateDefaultReExportEsms() {

  return globby([_path.resolve(`${inputLibOpenflPath}`, `**/*.js`)]).then(paths => {

    for (let path of paths) {

      // Skip the barrel index.js and index.esm.js files
      if (path.match(/index(\.js|\.d\.ts)$/) != null) {
        continue;
      }
      

      let content = delayFS.readFileSyncUTF8(path);
      let esmFilePath = path.replace(fullInputLibDirPath + '/', fullOutputLibDirPath + '/');
      
      
      let result = createDefaultReExportEsm(content, path);
      delayFS.mkDirByPathSync(_path.dirname(esmFilePath));
      
      if (path.indexOf('AssetLibrary') > -1) {
        delayFS.writeFileSyncUTF8(esmFilePath, result, {tags: 'rexport', createOnly: true});
      } else {
        delayFS.writeFileSyncUTF8(esmFilePath, result, 'rexport');
      }
    }
  });
}
function startCreateDefaultReExportEsms() {

  return globby([_path.resolve(`${inputLibOpenflPath}`, `**/*.js`)]).then(paths => {

    for (let path of paths) {

      
      if (path.match(/index(\.js|\.d\.ts)$/) != null) {
        continue;
      }
      

      let content = delayFS.readFileSyncUTF8(path);
      let esmFilePath = path.replace(fullInputLibDirPath + '/', fullOutputLibDirPath + '/');
      
      
      let result = createDefaultReExportEsm(content, path);
      delayFS.mkDirByPathSync(_path.dirname(esmFilePath));
      
      if (path.indexOf('AssetLibrary') > -1) {
        delayFS.writeFileSyncUTF8(esmFilePath, result, {tags: 'rexport', createOnly: true});
      } else {
        delayFS.writeFileSyncUTF8(esmFilePath, result, 'rexport');
      }
    }
  });
}
function startCreateDefaultReExportEsms ( ) { return globby ( [ _path . resolve ( ` ${ inputLibOpenflPath } ` , ` ` ) ] ) . then ( paths => { for ( let path of paths ) { // Skip the barrel index.js and index.esm.js files if ( path . match ( / index(\.js|\.d\.ts)$ / ) != null ) { continue ; } let content = delayFS . readFileSyncUTF8 ( path ) ; let esmFilePath = path . replace ( fullInputLibDirPath + '/' , fullOutputLibDirPath + '/' ) ; let result = createDefaultReExportEsm ( content , path ) ; delayFS . mkDirByPathSync ( _path . dirname ( esmFilePath ) ) ; if ( path . indexOf ( 'AssetLibrary' ) > - 1 ) { delayFS . writeFileSyncUTF8 ( esmFilePath , result , { tags : 'rexport' , createOnly : true } ) ; } else { delayFS . writeFileSyncUTF8 ( esmFilePath , result , 'rexport' ) ; } } } ) ; }
The generated es2015 module will contain: export { default } from "./../../_gen/openfl/display/Sprite");
The generated es2015 module will contain : export { default } from . / .. / .. / _gen / openfl / display / Sprite ) ;