awesome-typescript-loader
Advanced tools
Comparing version 3.1.1 to 3.1.2
@@ -5,2 +5,12 @@ # Change Log | ||
<a name="3.1.2"></a> | ||
## [3.1.2](https://github.com/s-panferov/awesome-typescript-loader/compare/v3.1.1...v3.1.2) (2017-03-07) | ||
### Bug Fixes | ||
* properly handle declarationDir ([0742e1a](https://github.com/s-panferov/awesome-typescript-loader/commit/0742e1a)) | ||
<a name="3.1.1"></a> | ||
@@ -7,0 +17,0 @@ ## [3.1.1](https://github.com/s-panferov/awesome-typescript-loader/compare/v3.1.0...v3.1.1) (2017-03-07) |
@@ -132,9 +132,12 @@ "use strict"; | ||
function applyDefaults(configFilePath, compilerConfig, loaderConfig, context) { | ||
_.defaults(compilerConfig.options, { | ||
var def = { | ||
sourceMap: true, | ||
verbose: false, | ||
declarationDir: compilerConfig.options.outDir, | ||
skipDefaultLibCheck: true, | ||
suppressOutputPathCheck: true | ||
}); | ||
}; | ||
if (compilerConfig.options.outDir && compilerConfig.options.declaration) { | ||
def.declarationDir = compilerConfig.options.outDir; | ||
} | ||
_.defaults(compilerConfig.options, def); | ||
if (loaderConfig.transpileOnly) { | ||
@@ -141,0 +144,0 @@ compilerConfig.options.isolatedModules = true; |
{ | ||
"name": "awesome-typescript-loader", | ||
"version": "3.1.1", | ||
"version": "3.1.2", | ||
"description": "Awesome TS loader for webpack", | ||
@@ -5,0 +5,0 @@ "main": "dist/entry.js", |
@@ -235,10 +235,15 @@ import * as fs from 'fs'; | ||
) { | ||
_.defaults(compilerConfig.options, { | ||
const def: any = { | ||
sourceMap: true, | ||
verbose: false, | ||
declarationDir: compilerConfig.options.outDir, | ||
skipDefaultLibCheck: true, | ||
suppressOutputPathCheck: true | ||
}); | ||
}; | ||
if (compilerConfig.options.outDir && compilerConfig.options.declaration) { | ||
def.declarationDir = compilerConfig.options.outDir; | ||
} | ||
_.defaults(compilerConfig.options, def); | ||
if (loaderConfig.transpileOnly) { | ||
@@ -245,0 +250,0 @@ compilerConfig.options.isolatedModules = true; |
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
332919
4199