esbuild-plugin-browserslist
Advanced tools
Comparing version 0.5.2 to 0.5.3
import type { Plugin } from 'esbuild'; | ||
export declare type Opts = { | ||
export type Opts = { | ||
printUnknownTargets: boolean; | ||
@@ -4,0 +4,0 @@ }; |
@@ -34,3 +34,3 @@ /** | ||
} | ||
/** https://github.com/evanw/esbuild/blob/v0.11.15/internal/compat/js_table.go#L17-L35 */ | ||
/** https://github.com/evanw/esbuild/blob/v0.15.12/internal/compat/js_table.go#L21-L47 */ | ||
export declare enum EsbuildEngine { | ||
@@ -41,6 +41,10 @@ Chrome = "chrome", | ||
Firefox = "firefox", | ||
Hermes = "hermes", | ||
IE = "ie", | ||
IOS = "ios", | ||
Node = "node", | ||
Opera = "opera", | ||
Rhino = "rhino", | ||
Safari = "safari" | ||
} | ||
export declare const BrowserslistEsbuildMapping: Partial<Record<BrowserslistKind, EsbuildEngine>>; |
@@ -38,3 +38,3 @@ "use strict"; | ||
})(BrowserslistKind = exports.BrowserslistKind || (exports.BrowserslistKind = {})); | ||
/** https://github.com/evanw/esbuild/blob/v0.11.15/internal/compat/js_table.go#L17-L35 */ | ||
/** https://github.com/evanw/esbuild/blob/v0.15.12/internal/compat/js_table.go#L21-L47 */ | ||
var EsbuildEngine; | ||
@@ -46,4 +46,8 @@ (function (EsbuildEngine) { | ||
EsbuildEngine["Firefox"] = "firefox"; | ||
EsbuildEngine["Hermes"] = "hermes"; | ||
EsbuildEngine["IE"] = "ie"; | ||
EsbuildEngine["IOS"] = "ios"; | ||
EsbuildEngine["Node"] = "node"; | ||
EsbuildEngine["Opera"] = "opera"; | ||
EsbuildEngine["Rhino"] = "rhino"; | ||
EsbuildEngine["Safari"] = "safari"; | ||
@@ -59,2 +63,4 @@ })(EsbuildEngine = exports.EsbuildEngine || (exports.EsbuildEngine = {})); | ||
[BrowserslistKind.Node]: EsbuildEngine.Node, | ||
[BrowserslistKind.IE]: EsbuildEngine.IE, | ||
[BrowserslistKind.Opera]: EsbuildEngine.Opera, | ||
// approximate mapping | ||
@@ -61,0 +67,0 @@ [BrowserslistKind.Android]: EsbuildEngine.Chrome, |
{ | ||
"name": "esbuild-plugin-browserslist", | ||
"description": "Configure esbuild's target based on a browserslist query", | ||
"version": "0.5.2", | ||
"version": "0.5.3", | ||
"author": "Nihal Gonsalves <nihal@nihalgonsalves.com>", | ||
@@ -36,3 +36,3 @@ "repository": { | ||
"browserslist": "^4.21.4", | ||
"esbuild": "~0.15.12" | ||
"esbuild": "~0.15.16" | ||
}, | ||
@@ -44,19 +44,19 @@ "dependencies": { | ||
"devDependencies": { | ||
"@commitlint/cli": "^17.1.2", | ||
"@commitlint/config-conventional": "^17.1.0", | ||
"@nihalgonsalves/esconfig": "^0.2.1", | ||
"@commitlint/cli": "^17.3.0", | ||
"@commitlint/config-conventional": "^17.3.0", | ||
"@nihalgonsalves/esconfig": "^0.2.2", | ||
"@types/debug": "^4.1.7", | ||
"@types/jest": "^29.2.0", | ||
"@types/jest": "^29.2.3", | ||
"@types/node": "18", | ||
"browserslist": "^4.21.4", | ||
"esbuild": "~0.15.12", | ||
"eslint": "^8.26.0", | ||
"eslint-plugin-jest": "^27.1.3", | ||
"husky": "^8.0.1", | ||
"jest": "^29.2.2", | ||
"prettier": "^2.7.1", | ||
"esbuild": "~0.15.16", | ||
"eslint": "^8.28.0", | ||
"eslint-plugin-jest": "^27.1.6", | ||
"husky": "^8.0.2", | ||
"jest": "^29.3.1", | ||
"prettier": "^2.8.0", | ||
"standard-version": "^9.5.0", | ||
"ts-jest": "^29.0.3", | ||
"typescript": "^4.8.4" | ||
"typescript": "^4.9.3" | ||
} | ||
} |
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
17888
217