esbuild-plugin-browserslist
Advanced tools
Comparing version 0.8.1 to 0.9.0
@@ -16,3 +16,3 @@ "use strict"; | ||
const esbuildOptions = build.initialOptions; | ||
if (esbuildOptions.target) { | ||
if (esbuildOptions.target !== undefined) { | ||
(0, util_1.dbg)('Got esbuildOptions.target=%s, expected=<falsey>', esbuildOptions.target); | ||
@@ -19,0 +19,0 @@ throw new Error(`${util_1.PLUGIN_NAME} cannot be used with a set target`); |
@@ -35,3 +35,3 @@ "use strict"; | ||
(0, util_1.dbg)('Got target for entry=%s: %s', entry, esbuildTarget); | ||
if (!esbuildTarget) { | ||
if (esbuildTarget === undefined) { | ||
logFn(`Skipping unknown target: entry=${entry}, browser=${browser}, version=${version}`); | ||
@@ -38,0 +38,0 @@ return undefined; |
{ | ||
"name": "esbuild-plugin-browserslist", | ||
"description": "Configure esbuild's target based on a browserslist query", | ||
"version": "0.8.1", | ||
"version": "0.9.0", | ||
"author": "Nihal Gonsalves <nihal@nihalgonsalves.com>", | ||
@@ -19,15 +19,9 @@ "repository": { | ||
], | ||
"standard-version": { | ||
"scripts": { | ||
"postchangelog": "prettier --write CHANGELOG.md" | ||
} | ||
}, | ||
"scripts": { | ||
"typecheck": "tsc", | ||
"build": "rm -rf dist && tsc --project tsconfig.build.json", | ||
"test": "jest", | ||
"test": "vitest", | ||
"lint": "eslint --ext .js,.jsx,.ts,.tsx ./src/", | ||
"format": "prettier . --write", | ||
"format:check": "prettier . --check", | ||
"prepare": "husky install", | ||
"prepublishOnly": "yarn build && yarn lint && yarn test" | ||
@@ -37,3 +31,3 @@ }, | ||
"browserslist": "^4.21.8", | ||
"esbuild": "~0.18.2" | ||
"esbuild": "~0.19.2" | ||
}, | ||
@@ -47,17 +41,16 @@ "dependencies": { | ||
"@commitlint/config-conventional": "^17.6.6", | ||
"@nihalgonsalves/esconfig": "^0.3.0", | ||
"@nihalgonsalves/esconfig": "^0.6.0", | ||
"@types/debug": "^4.1.8", | ||
"@types/jest": "^29.5.2", | ||
"@types/node": "18", | ||
"@vitest/coverage-v8": "^0.34.1", | ||
"@vitest/ui": "^0.34.1", | ||
"browserslist": "^4.21.9", | ||
"esbuild": "~0.18.11", | ||
"eslint": "^8.44.0", | ||
"eslint-plugin-jest": "^27.2.2", | ||
"husky": "^8.0.3", | ||
"jest": "^29.5.0", | ||
"prettier": "^2.8.8", | ||
"standard-version": "^9.5.0", | ||
"ts-jest": "^29.1.1", | ||
"typescript": "^5.1.6" | ||
"esbuild": "~0.19.2", | ||
"eslint": "^8.45.0", | ||
"eslint-plugin-vitest": "^0.2.6", | ||
"lefthook": "^1.4.8", | ||
"prettier": "^3.0.0", | ||
"typescript": "^5.1.6", | ||
"vitest": "^0.34.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
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
15
17735