From a45084d6cfb824afbc491c51205029dcb415372d Mon Sep 17 00:00:00 2001 From: Ma Cheng Date: Thu, 30 May 2019 14:09:43 +0800 Subject: [PATCH] Update parser.md fix typo "import" => "importSpecifier" --- src/content/api/parser.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/api/parser.md b/src/content/api/parser.md index 62c6b0bdd8ef..8549a0403e55 100644 --- a/src/content/api/parser.md +++ b/src/content/api/parser.md @@ -261,7 +261,7 @@ import _, { has } from 'lodash'; __MyPlugin.js__ ```js -parser.hooks.import.tap('MyPlugin', (statement, source, exportName, identifierName) => { +parser.hooks.importSpecifier.tap('MyPlugin', (statement, source, exportName, identifierName) => { /* First call source == 'lodash' exportName == 'default'