esbuild-loader
Advanced tools
Comparing version 2.6.0 to 2.6.1
@@ -51,2 +51,3 @@ "use strict"; | ||
var loader_utils_1 = require("loader-utils"); | ||
var tsxTryTsLoaderPtrn = /Unexpected|Expected/; | ||
function ESBuildLoader(source) { | ||
@@ -73,3 +74,3 @@ var _a, _b; | ||
// Target might be a TS file accidentally parsed as TSX | ||
if (transformOptions.loader === 'tsx' && error.message.includes('Unexpected')) { | ||
if (transformOptions.loader === 'tsx' && tsxTryTsLoaderPtrn.test(error.message)) { | ||
transformOptions.loader = 'ts'; | ||
@@ -76,0 +77,0 @@ return [2 /*return*/, service.transform(source, transformOptions).catch(function (_) { |
{ | ||
"name": "esbuild-loader", | ||
"version": "2.6.0", | ||
"version": "2.6.1", | ||
"description": "⚡️ Speed up your Webpack build with esbuild", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
29183
401
0