Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

esbuild-loader

Package Overview
Dependencies
Maintainers
1
Versions
52
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

esbuild-loader - npm Package Compare versions

Comparing version 2.6.0 to 2.6.1

3

dist/loader.js

@@ -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": [

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc