awesome-typescript-loader
Advanced tools
Comparing version 3.2.0 to 3.2.1
@@ -5,2 +5,12 @@ # Change Log | ||
<a name="3.2.1"></a> | ||
## [3.2.1](https://github.com/s-panferov/awesome-typescript-loader/compare/v3.2.0...v3.2.1) (2017-06-28) | ||
### Bug Fixes | ||
* speedup caching by pre-hashing cacheIdentifier ([589683f](https://github.com/s-panferov/awesome-typescript-loader/commit/589683f)) | ||
<a name="3.2.0"></a> | ||
@@ -7,0 +17,0 @@ # [3.2.0](https://github.com/s-panferov/awesome-typescript-loader/compare/v3.2.0-rc.0...v3.2.0) (2017-06-28) |
@@ -16,3 +16,3 @@ /// <reference types="node" /> | ||
checker: Checker; | ||
cacheIdentifier: any; | ||
cacheIdentifier: string; | ||
context: string; | ||
@@ -19,0 +19,0 @@ times: Dict<number>; |
@@ -9,2 +9,3 @@ "use strict"; | ||
var watch_mode_1 = require("./watch-mode"); | ||
var crypto_1 = require("crypto"); | ||
var colors = require('colors/safe'); | ||
@@ -108,3 +109,4 @@ var pkg = require('../package.json'); | ||
} | ||
return { | ||
var hash = crypto_1.createHash('sha512'); | ||
var contents = JSON.stringify({ | ||
typescript: tsImpl.version, | ||
@@ -116,3 +118,5 @@ 'awesome-typescript-loader': pkg.version, | ||
env: process.env.BABEL_ENV || process.env.NODE_ENV || 'development' | ||
}; | ||
}); | ||
hash.end(contents); | ||
return hash.read().toString('hex'); | ||
} | ||
@@ -119,0 +123,0 @@ } |
{ | ||
"name": "awesome-typescript-loader", | ||
"version": "3.2.0", | ||
"version": "3.2.1", | ||
"description": "Awesome TS loader for webpack", | ||
@@ -5,0 +5,0 @@ "main": "dist/entry.js", |
@@ -9,2 +9,3 @@ import * as fs from 'fs'; | ||
import { WatchModeSymbol } from './watch-mode'; | ||
import { createHash } from 'crypto'; | ||
@@ -23,3 +24,3 @@ let colors = require('colors/safe'); | ||
checker: Checker; | ||
cacheIdentifier: any; | ||
cacheIdentifier: string; | ||
context: string; | ||
@@ -202,3 +203,3 @@ | ||
context: string | ||
) { | ||
): string { | ||
if (loaderConfig.useCache) { | ||
@@ -213,3 +214,4 @@ if (!loaderConfig.cacheDirectory) { | ||
return { | ||
let hash = createHash('sha512') as any; | ||
let contents = JSON.stringify({ | ||
typescript: tsImpl.version, | ||
@@ -222,3 +224,6 @@ 'awesome-typescript-loader': pkg.version, | ||
env: process.env.BABEL_ENV || process.env.NODE_ENV || 'development' | ||
}; | ||
}); | ||
hash.end(contents); | ||
return hash.read().toString('hex'); | ||
} | ||
@@ -225,0 +230,0 @@ } |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
372515
4765