Преглед на файлове

legacy module support for d.ts files

Raanan Weber преди 7 години
родител
ревизия
fdbe7bd9f1
променени са 1 файла, в които са добавени 2 реда и са изтрити 1 реда
  1. 2 1
      Tools/Gulp/gulpfile.js

+ 2 - 1
Tools/Gulp/gulpfile.js

@@ -455,7 +455,6 @@ var buildExternalLibrary = function (library, settings, watch) {
                     if (!out.minified) {
                         wpConfig.mode = "development";
                     }
-                    console.log(wpConfig)
                     let wpBuild = webpackStream(wpConfig, webpack);
 
                     //shoud dtsBundle create the declaration?
@@ -558,6 +557,8 @@ var buildExternalLibrary = function (library, settings, watch) {
                                 if (err) throw err;
                                 var newData = processDeclaration(data, settings.build.processDeclaration);
                                 fs.writeFile(fileLocation.replace('.module', ''), newData);
+                                //legacy module support
+                                fs.writeFile(fileLocation, data + "\n" + newData);
                             });
                         }
                     });