ts-loader
Advanced tools
Comparing version 7.0.2 to 7.0.3
# Changelog | ||
## v7.0.3 | ||
* [Ensure that JSON files are included in build module resolution](https://github.com/TypeStrong/ts-loader/pull/1101) - thanks @berickson1 | ||
## v7.0.2 | ||
@@ -4,0 +7,0 @@ * [Make content hash consistent across machines](https://github.com/TypeStrong/ts-loader/pull/1085) - thanks @elyalvarado |
@@ -201,2 +201,9 @@ "use strict"; | ||
function getScriptRegexp(instance) { | ||
// If resolveJsonModules is set, we should accept json files | ||
if (instance.configParseResult.options.resolveJsonModule) { | ||
// if allowJs is set then we should accept js(x) files | ||
return instance.configParseResult.options.allowJs === true | ||
? /\.tsx?$|\.json$|\.jsx?$/i | ||
: /\.tsx?$|\.json$/i; | ||
} | ||
// if allowJs is set then we should accept js(x) files | ||
@@ -203,0 +210,0 @@ return instance.configParseResult.options.allowJs === true |
{ | ||
"name": "ts-loader", | ||
"version": "7.0.2", | ||
"version": "7.0.3", | ||
"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
204316
2775