From f1e80a209a8318ce64e08249a9a5557e6e8da0c1 Mon Sep 17 00:00:00 2001 From: Marco Fugaro Date: Thu, 4 Jan 2024 11:41:55 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9D=20Document=20options=20argument?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- readme.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/readme.md b/readme.md index a24244b..e2400bb 100644 --- a/readme.md +++ b/readme.md @@ -44,7 +44,7 @@ browserslistToEsbuild(['>0.2%', 'not dead', 'not op_mini all']) ## API -### browserslistToEsbuild(browserslistConfig?) +### browserslistToEsbuild(browserslistConfig?, options?) #### browserslistConfig @@ -52,6 +52,12 @@ Type: `array | string | undefined` An array of string of browsers [compatible with browserslist](https://github.com/browserslist/browserslist#full-list). If none is passed, a browserslist config is searched in the script running directory. +#### options + +Type: `object | undefined` + +An object containing the options that will be forwarded to browserslist. You can check out the [browserslist options documentation](https://github.com/browserslist/browserslist?tab=readme-ov-file#js-api) to see all the options available. + ## CLI You can also use this package on the cli to test out the command in your project.