Skip to content

Commit

Permalink
docs: add options to dataToEsm section
Browse files Browse the repository at this point in the history
  • Loading branch information
shellscape authored Nov 28, 2023
1 parent d732d59 commit 16d6804
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion packages/pluginutils/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ export default function myPlugin(options = {}) {

Transforms objects into tree-shakable ES Module imports.

Parameters: `(data: Object)`<br>
Parameters: `(data: Object, options: DataToEsmOptions)`<br>
Returns: `String`

#### `data`
Expand All @@ -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
Expand Down

0 comments on commit 16d6804

Please sign in to comment.