فهرست منبع

acoiding spread in .js files

Raanan Weber 7 سال پیش
والد
کامیت
37517ed568
1فایلهای تغییر یافته به همراه5 افزوده شده و 2 حذف شده
  1. 5 2
      Tools/Gulp/gulp-es6ModuleExports.js

+ 5 - 2
Tools/Gulp/gulp-es6ModuleExports.js

@@ -80,11 +80,14 @@ ${decorateAddition}
 
         let exportedItems = '';
         exportsArray.forEach((e, idx) => {
-            if (e.indexOf('.') === -1)
+            if (e.indexOf('.') === -1) {
                 exportedItems += `${idx ? ',' : ''}${e}`
+                exportsText += `var ${e} = BABYLON.${e};
+`
+            }
         });
 
-        exportsText = `let { ${exportedItems} } = BABYLON;
+        exportsText += `
 export { ${exportedItems} };`
 
         if (file.isNull()) {