From 1ab0869ade80f17261c5b5ea94327dfcecf33c2d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Zasso?= Date: Thu, 12 Sep 2019 12:20:44 +0200 Subject: [PATCH] fix: update transformer for new IoC behavior --- src/Transformers/ioc.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Transformers/ioc.ts b/src/Transformers/ioc.ts index f88338d..e5ee10c 100644 --- a/src/Transformers/ioc.ts +++ b/src/Transformers/ioc.ts @@ -29,7 +29,7 @@ export function iocTransformer (ts: typeof tsStatic, rcFile: RcFile) { const moduleName = (node.arguments[0] as tsStatic.StringLiteral).text if (moduleName && moduleName.startsWith('@ioc:')) { return ts.createCall(ts.createIdentifier( - `global[Symbol.for('ioc.useEsm')]`), + `global[Symbol.for('ioc.use')]`), undefined, [ts.createStringLiteral(moduleName.substr(5))], )