Skip to content

Commit a45084d

Browse files
authored
Update parser.md
fix typo "import" => "importSpecifier"
1 parent 030e628 commit a45084d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/content/api/parser.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ import _, { has } from 'lodash';
261261
__MyPlugin.js__
262262

263263
```js
264-
parser.hooks.import.tap('MyPlugin', (statement, source, exportName, identifierName) => {
264+
parser.hooks.importSpecifier.tap('MyPlugin', (statement, source, exportName, identifierName) => {
265265
/* First call
266266
source == 'lodash'
267267
exportName == 'default'

0 commit comments

Comments
 (0)