From 16d6804c0991628a6a47a6795142440972d7b040 Mon Sep 17 00:00:00 2001 From: Andrew Powell Date: Tue, 28 Nov 2023 09:45:02 -0500 Subject: [PATCH] docs: add options to dataToEsm section --- packages/pluginutils/README.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/packages/pluginutils/README.md b/packages/pluginutils/README.md index 24b392148..8f8219802 100755 --- a/packages/pluginutils/README.md +++ b/packages/pluginutils/README.md @@ -143,7 +143,7 @@ export default function myPlugin(options = {}) { Transforms objects into tree-shakable ES Module imports. -Parameters: `(data: Object)`
+Parameters: `(data: Object, options: DataToEsmOptions)`
Returns: `String` #### `data` @@ -152,6 +152,12 @@ Type: `Object` An object to transform into an ES module. +#### `options` + +Type: `DataToEsmOptions` + +_Note: Please see the TypeScript definition for complete documentation of these options_ + #### Usage ```js