@web/dev-server
Advanced tools
Comparing version 0.0.3 to 0.0.4
# @web/dev-server | ||
## 0.0.4 | ||
### Patch Changes | ||
- 6694af7: added esbuild-target flag | ||
- Updated dependencies [e83ac30] | ||
- @web/dev-server-rollup@0.2.5 | ||
## 0.0.3 | ||
@@ -4,0 +12,0 @@ |
@@ -7,2 +7,3 @@ import { RollupNodeResolveOptions } from '@rollup/plugin-node-resolve'; | ||
preserveSymlinks?: boolean; | ||
esbuildTarget?: string | string[]; | ||
} | ||
@@ -9,0 +10,0 @@ export interface DevServerCliArgsConfig extends DevServerConfig { |
@@ -11,2 +11,3 @@ "use strict"; | ||
const watchPlugin_1 = require("./watchPlugin"); | ||
const esbuildPlugin_1 = require("./esbuildPlugin"); | ||
const cliOptions = [ | ||
@@ -30,2 +31,8 @@ { | ||
{ | ||
name: 'esbuild-target', | ||
type: String, | ||
multiple: true, | ||
description: 'JS language target to compile down to using esbuild. Recommended value is "auto", which compiles based on user agent. Check the docs for more options.', | ||
}, | ||
{ | ||
name: 'debug', | ||
@@ -53,2 +60,5 @@ description: 'Log debug messages.', | ||
} | ||
if (config.esbuildTarget) { | ||
config.plugins.push(esbuildPlugin_1.esbuildPlugin(config.esbuildTarget)); | ||
} | ||
if (config.nodeResolve) { | ||
@@ -55,0 +65,0 @@ const userOptions = typeof config.nodeResolve === 'object' ? config.nodeResolve : undefined; |
{ | ||
"name": "@web/dev-server", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"publishConfig": { | ||
@@ -50,3 +50,3 @@ "access": "public" | ||
"@web/dev-server-core": "^0.2.6", | ||
"@web/dev-server-rollup": "^0.2.4", | ||
"@web/dev-server-rollup": "^0.2.5", | ||
"chalk": "^4.1.0", | ||
@@ -53,0 +53,0 @@ "command-line-args": "^5.1.1", |
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
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
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
16583
26
185
1