diff --git a/gulpfile.js b/gulpfile.js index 6c61343e..13f0e860 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -118,6 +118,8 @@ function amdify(source, subDependencyMapping) { let requirePath; source = source.replace(/\r\n/g, '\n'); + source = source.replace(/\b(let|const)\b/g, 'var'); + let outputSource = source; // find module exports