Skip to content

Commit 8cec80d

Browse files
authored
Merge pull request #835 from Brooooooklyn/master
Pass raw path to transpileModule so that customTransformers could access the raw path
2 parents 078fab7 + f99f737 commit 8cec80d

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Changelog
22

3+
## 5.1.1
4+
* [fix(getTranspilationEmit): pass the raw path to transpileModule](https://github.com/TypeStrong/ts-loader/pull/835) - thanks @Brooooooklyn
5+
36
## 5.1.0
47

58
* [feat: Added cache for some FS operations while compiling - `experimentalFileCaching`](https://github.com/TypeStrong/ts-loader/pull/829) - thanks @timocov!

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ts-loader",
3-
"version": "5.1.0",
3+
"version": "5.1.1",
44
"description": "TypeScript loader for webpack",
55
"main": "index.js",
66
"types": "dist/types/index.d.ts",

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)