mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 17:25:39 +01:00
Workaround issue with r.js that cannot bundle typescriptServices
This commit is contained in:
parent
77ac642bf5
commit
6fecefa24b
2 changed files with 6 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue