Skip to content

Commit

Permalink
fix(getTranspilationEmit): pass the raw path to transpileModule
Browse files Browse the repository at this point in the history
align the behavior of `transpileOnly: true` and `transpileOnly: false`
  • Loading branch information
Brooooooklyn committed Sep 12, 2018
1 parent 078fab7 commit 9aa423a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -336,13 +336,11 @@ function getEmit(
* Transpile file
*/
function getTranspilationEmit(
filePath: string,
fileName: string,
contents: string,
instance: TSInstance,
loader: Webpack
) {
const fileName = path.basename(filePath);

const {
outputText,
sourceMapText,
Expand Down

0 comments on commit 9aa423a

Please sign in to comment.