Skip to content
This repository has been archived by the owner on Jun 8, 2021. It is now read-only.

Commit

Permalink
fix: update transformer for new IoC behavior (#165)
Browse files Browse the repository at this point in the history
  • Loading branch information
targos authored and thetutlage committed Sep 12, 2019
1 parent c648919 commit d86209b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Transformers/ioc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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))],
)
Expand Down

0 comments on commit d86209b

Please sign in to comment.