diff --git a/gulpfile.js b/gulpfile.js index 231b5e67..6360ce17 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -106,7 +106,9 @@ gulp.task('import-typescript', function() { tsServices += ` // MONACOCHANGE -define([], function() { return ts; }); +// Defining the entire module name because r.js has an issue and cannot bundle this file +// correctly with an anonymous define call +define("vs/language/typescript/lib/typescriptServices", [], function() { return ts; }); // END MONACOCHANGE `; fs.writeFileSync(path.join(TYPESCRIPT_LIB_DESTINATION, 'typescriptServices.js'), tsServices); diff --git a/lib/typescriptServices.js b/lib/typescriptServices.js index 9d9b38e2..a8e93f90 100644 --- a/lib/typescriptServices.js +++ b/lib/typescriptServices.js @@ -81536,5 +81536,7 @@ var TypeScript; var toolsVersion = "2.1"; // MONACOCHANGE -define([], function() { return ts; }); +// Defining the entire module name because r.js has an issue and cannot bundle this file +// correctly with an anonymous define call +define("vs/language/typescript/lib/typescriptServices", [], function() { return ts; }); // END MONACOCHANGE