Skip to content

Commit

Permalink
make acornOptions optional in parse() in docs (#3237)
Browse files Browse the repository at this point in the history
  • Loading branch information
tjenkinson authored and lukastaegert committed Nov 18, 2019
1 parent 4227977 commit 3885a7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/05-plugin-development.md
Expand Up @@ -446,7 +446,7 @@ for (const moduleId of this.moduleIds) { /* ... */ }

or converted into an Array via `Array.from(this.moduleIds)`.

#### `this.parse(code: string, acornOptions: AcornOptions) => ESTree.Program`
#### `this.parse(code: string, acornOptions?: AcornOptions) => ESTree.Program`

Use Rollup's internal acorn instance to parse code to an AST.

Expand Down

0 comments on commit 3885a7f

Please sign in to comment.