Skip to content

Commit

Permalink
fix(mappings): fix es2015 import transformations
Browse files Browse the repository at this point in the history
  • Loading branch information
fathyb committed Dec 15, 2017
1 parent 6065fce commit bc9e6a4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/backend/transformers/paths.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ export function PathTransform(options: ts.CompilerOptions): ts.TransformerFactor
throw new Error('Expected child.moduleSpecifier to be StringLiteral')
}

specifier.text = resolve(specifier.text, options)
const resolved = resolve(specifier.text, options)

child.moduleSpecifier = ts.createLiteral(resolved)

return child
}
Expand Down
1 change: 1 addition & 0 deletions src/frontend/asset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ export = class TSAsset extends JSAsset {
dispatchCheckFile(this.name)

const transpiler = await this.transpiler.wait()

result = transpiler.transpile(code, this.name)
}

Expand Down

0 comments on commit bc9e6a4

Please sign in to comment.