Skip to content

Commit 9aa423a

Browse files
committed
fix(getTranspilationEmit): pass the raw path to transpileModule
align the behavior of `transpileOnly: true` and `transpileOnly: false`
1 parent 078fab7 commit 9aa423a

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/index.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -336,13 +336,11 @@ function getEmit(
336336
* Transpile file
337337
*/
338338
function getTranspilationEmit(
339-
filePath: string,
339+
fileName: string,
340340
contents: string,
341341
instance: TSInstance,
342342
loader: Webpack
343343
) {
344-
const fileName = path.basename(filePath);
345-
346344
const {
347345
outputText,
348346
sourceMapText,

0 commit comments

Comments
 (0)