diff --git a/CHANGELOG.md b/CHANGELOG.md index 497ca1d47..bff47d2e9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ # Changelog +## 5.1.1 +* [fix(getTranspilationEmit): pass the raw path to transpileModule](https://github.com/TypeStrong/ts-loader/pull/835) - thanks @Brooooooklyn + ## 5.1.0 * [feat: Added cache for some FS operations while compiling - `experimentalFileCaching`](https://github.com/TypeStrong/ts-loader/pull/829) - thanks @timocov! diff --git a/package.json b/package.json index 14b64d529..efc41307e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ts-loader", - "version": "5.1.0", + "version": "5.1.1", "description": "TypeScript loader for webpack", "main": "index.js", "types": "dist/types/index.d.ts", diff --git a/src/index.ts b/src/index.ts index d6b57d787..68d6838b5 100644 --- a/src/index.ts +++ b/src/index.ts @@ -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,