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

@web/dev-server-esbuild

Package Overview
Dependencies
Maintainers
7
Versions
65
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@web/dev-server-esbuild - npm Package Compare versions

Comparing version 0.2.3 to 0.2.4

6

CHANGELOG.md
# @web/dev-server-esbuild
## 0.2.4
### Patch Changes
- be76d89: exposed strict option for esbuild
## 0.2.3

@@ -4,0 +10,0 @@

3

dist/EsbuildPlugin.d.ts
import { Context, Plugin, Logger, DevServerCoreConfig } from '@web/dev-server-core';
import { Loader } from 'esbuild';
import { Loader, Strict } from 'esbuild';
export interface EsbuildConfig {

@@ -10,2 +10,3 @@ loaders: Record<string, Loader>;

jsxFragment?: string;
strict?: boolean | Strict[];
define?: {

@@ -12,0 +13,0 @@ [key: string]: string;

@@ -128,4 +128,10 @@ "use strict";

target,
// use strict class fields when not compiling TS
strict: ['ts', 'tsx'].includes(loader) ? [] : ['class-fields'],
strict:
// use user defined strict config, otherwise default to strict class fields
// unless we are transforming TS which does not use strict class fields
this.esbuildConfig.strict
? this.esbuildConfig.strict
: ['ts', 'tsx'].includes(loader)
? []
: ['class-fields'],
jsxFactory: this.esbuildConfig.jsxFactory,

@@ -132,0 +138,0 @@ jsxFragment: this.esbuildConfig.jsxFragment,

{
"name": "@web/dev-server-esbuild",
"version": "0.2.3",
"version": "0.2.4",
"publishConfig": {

@@ -5,0 +5,0 @@ "access": "public"

@@ -9,3 +9,3 @@ import {

} from '@web/dev-server-core';
import { startService, Service, Loader, Message } from 'esbuild';
import { startService, Service, Loader, Message, Strict } from 'esbuild';
import { promisify } from 'util';

@@ -42,2 +42,3 @@ import path from 'path';

jsxFragment?: string;
strict?: boolean | Strict[];
define?: { [key: string]: string };

@@ -185,4 +186,10 @@ }

target,
// use strict class fields when not compiling TS
strict: ['ts', 'tsx'].includes(loader) ? [] : ['class-fields'],
strict:
// use user defined strict config, otherwise default to strict class fields
// unless we are transforming TS which does not use strict class fields
this.esbuildConfig.strict
? this.esbuildConfig.strict
: ['ts', 'tsx'].includes(loader)
? []
: ['class-fields'],
jsxFactory: this.esbuildConfig.jsxFactory,

@@ -189,0 +196,0 @@ jsxFragment: this.esbuildConfig.jsxFragment,

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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