Skip to content

Commit

Permalink
Merge pull request #835 from Brooooooklyn/master
Browse files Browse the repository at this point in the history
Pass raw path to transpileModule so that customTransformers could access the raw path
  • Loading branch information
johnnyreilly committed Sep 15, 2018
2 parents 078fab7 + f99f737 commit 8cec80d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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!
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
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 8cec80d

Please sign in to comment.