Workaround issue with r.js that cannot bundle typescriptServices

This commit is contained in:
Alex Dima 2017-01-18 16:46:39 +01:00
parent 77ac642bf5
commit 6fecefa24b
2 changed files with 6 additions and 2 deletions

View file

@ -106,7 +106,9 @@ gulp.task('import-typescript', function() {
tsServices += tsServices +=
` `
// MONACOCHANGE // 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 // END MONACOCHANGE
`; `;
fs.writeFileSync(path.join(TYPESCRIPT_LIB_DESTINATION, 'typescriptServices.js'), tsServices); fs.writeFileSync(path.join(TYPESCRIPT_LIB_DESTINATION, 'typescriptServices.js'), tsServices);

View file

@ -81536,5 +81536,7 @@ var TypeScript;
var toolsVersion = "2.1"; var toolsVersion = "2.1";
// MONACOCHANGE // 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 // END MONACOCHANGE