ts-loader
Advanced tools
Comparing version 9.2.3 to 9.2.4
# Changelog | ||
## v9.2.4 | ||
* [Fix undefined configPath now falls back to default](https://github.com/TypeStrong/ts-loader/pull/1346) - thanks @johnnyreilly | ||
## v9.2.3 | ||
@@ -4,0 +8,0 @@ |
@@ -163,3 +163,2 @@ "use strict"; | ||
compiler: 'typescript', | ||
configFile: 'tsconfig.json', | ||
context: undefined, | ||
@@ -183,2 +182,3 @@ transpileOnly: false, | ||
options.instance = instanceName; | ||
options.configFile = options.configFile || 'tsconfig.json'; | ||
// happypack can be used only together with transpileOnly mode | ||
@@ -293,12 +293,13 @@ options.transpileOnly = options.happyPackMode ? true : options.transpileOnly; | ||
addDependenciesFromSolutionBuilder(instance, filePath, addDependency); | ||
loaderContext._module.buildMeta.tsLoaderDefinitionFileVersions = dependencies.map(defFilePath => path.relative(loaderContext.rootContext, defFilePath) + | ||
'@' + | ||
(utils_1.isReferencedFile(instance, defFilePath) | ||
? instance | ||
.solutionBuilderHost.getInputFileStamp(defFilePath) | ||
.toString() | ||
: (instance.files.get(instance.filePathKeyMapper(defFilePath)) || | ||
instance.otherFiles.get(instance.filePathKeyMapper(defFilePath)) || { | ||
version: '?', | ||
}).version)); | ||
loaderContext._module.buildMeta.tsLoaderDefinitionFileVersions = | ||
dependencies.map(defFilePath => path.relative(loaderContext.rootContext, defFilePath) + | ||
'@' + | ||
(utils_1.isReferencedFile(instance, defFilePath) | ||
? instance | ||
.solutionBuilderHost.getInputFileStamp(defFilePath) | ||
.toString() | ||
: (instance.files.get(instance.filePathKeyMapper(defFilePath)) || | ||
instance.otherFiles.get(instance.filePathKeyMapper(defFilePath)) || { | ||
version: '?', | ||
}).version)); | ||
return getOutputAndSourceMapFromOutputFiles(outputFiles); | ||
@@ -392,3 +393,3 @@ } | ||
} | ||
const { outputText, sourceMapText, diagnostics, } = instance.compiler.transpileModule(contents, { | ||
const { outputText, sourceMapText, diagnostics } = instance.compiler.transpileModule(contents, { | ||
compilerOptions: { ...instance.compilerOptions, rootDir: undefined }, | ||
@@ -395,0 +396,0 @@ transformers: instance.transformers, |
{ | ||
"name": "ts-loader", | ||
"version": "9.2.3", | ||
"version": "9.2.4", | ||
"description": "TypeScript loader for webpack", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
246788
3025