@web/dev-server-esbuild
Advanced tools
Comparing version 0.2.9 to 0.2.10
# @web/dev-server-esbuild | ||
## 0.2.10 | ||
### Patch Changes | ||
- c7f8d271: set esm format for non jslike loaders | ||
- Updated dependencies [375116ad] | ||
- @web/dev-server-core@0.3.2 | ||
## 0.2.9 | ||
@@ -4,0 +12,0 @@ |
@@ -129,2 +129,4 @@ "use strict"; | ||
target, | ||
// don't set any format for JS-like formats, otherwise esbuild reformats the code unnecesarily | ||
format: ['js', 'jsx', 'ts', 'tsx'].includes(loader) ? undefined : 'esm', | ||
jsxFactory: this.esbuildConfig.jsxFactory, | ||
@@ -131,0 +133,0 @@ jsxFragment: this.esbuildConfig.jsxFragment, |
@@ -17,3 +17,3 @@ import { Plugin } from '@web/dev-server-core'; | ||
} | ||
export declare function esbuildPlugin(args: EsBuildPluginArgs): Plugin; | ||
export declare function esbuildPlugin(args?: EsBuildPluginArgs): Plugin; | ||
//# sourceMappingURL=esbuildPluginFactory.d.ts.map |
@@ -5,3 +5,3 @@ "use strict"; | ||
const EsbuildPlugin_1 = require("./EsbuildPlugin"); | ||
function esbuildPlugin(args) { | ||
function esbuildPlugin(args = {}) { | ||
var _a, _b; | ||
@@ -8,0 +8,0 @@ const target = (_a = args.target) !== null && _a !== void 0 ? _a : 'auto'; |
{ | ||
"name": "@web/dev-server-esbuild", | ||
"version": "0.2.9", | ||
"version": "0.2.10", | ||
"publishConfig": { | ||
@@ -30,4 +30,4 @@ "access": "public" | ||
"start:demo:ts": "es-dev-server --config demo/ts/server.config.js", | ||
"test": "mocha \"test/**/*.test.ts\" --require ts-node/register --reporter dot", | ||
"test:watch": "mocha \"test/**/*.test.ts\" --require ts-node/register --watch --watch-files src,test --reporter dot" | ||
"test": "mocha \"test/**/*.test.ts\" --require ts-node/register", | ||
"test:watch": "mocha \"test/**/*.test.ts\" --require ts-node/register --watch --watch-files src,test" | ||
}, | ||
@@ -55,4 +55,4 @@ "files": [ | ||
"@mdn/browser-compat-data": "^3.0.1", | ||
"@web/dev-server-core": "^0.3.0", | ||
"esbuild": "^0.8.24", | ||
"@web/dev-server-core": "^0.3.2", | ||
"esbuild": "^0.8.27", | ||
"parse5": "^6.0.1", | ||
@@ -59,0 +59,0 @@ "ua-parser-js": "^0.7.23" |
@@ -184,2 +184,4 @@ import { | ||
target, | ||
// don't set any format for JS-like formats, otherwise esbuild reformats the code unnecesarily | ||
format: ['js', 'jsx', 'ts', 'tsx'].includes(loader) ? undefined : 'esm', | ||
jsxFactory: this.esbuildConfig.jsxFactory, | ||
@@ -186,0 +188,0 @@ jsxFragment: this.esbuildConfig.jsxFragment, |
@@ -18,3 +18,3 @@ import { Plugin } from '@web/dev-server-core'; | ||
export function esbuildPlugin(args: EsBuildPluginArgs): Plugin { | ||
export function esbuildPlugin(args: EsBuildPluginArgs = {}): Plugin { | ||
const target = args.target ?? 'auto'; | ||
@@ -21,0 +21,0 @@ const loaders: Record<string, Loader> = {}; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
50292
800
Updated@web/dev-server-core@^0.3.2
Updatedesbuild@^0.8.27