This commit is contained in:
Ryan Dahl 2018-09-02 01:59:16 -04:00
parent f949ded933
commit 787832c68e
6 changed files with 37 additions and 20 deletions

View file

@ -427,10 +427,7 @@ export class DenoCompiler implements ts.LanguageServiceHost {
*/
makeDefine(moduleMetaData: ModuleMetaData): AmdDefine {
// TODO should this really be part of the public API of the compiler?
return (
deps: ModuleSpecifier[],
factory: AmdFactory
): void => {
return (deps: ModuleSpecifier[], factory: AmdFactory): void => {
this._log("compiler.localDefine", moduleMetaData.fileName);
moduleMetaData.factory = factory;
// when there are circular dependencies, we need to skip recursing the