From 6fecefa24b5749e9741a9ca4413bf56b88d8f3d0 Mon Sep 17 00:00:00 2001 From: Alex Dima Date: Wed, 18 Jan 2017 16:46:39 +0100 Subject: [PATCH] Workaround issue with r.js that cannot bundle typescriptServices --- gulpfile.js | 4 +++- lib/typescriptServices.js | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) 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