Skip to content

Commit

Permalink
Fix typo in moduleAttributesVerionPluginOption (#14584)
Browse files Browse the repository at this point in the history
Correct spelling is moduleAttributesVersionPluginOption
  • Loading branch information
TysonMN committed May 25, 2022
1 parent ab5d19b commit f8cf03c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/babel-parser/src/plugin-utils.js
Expand Up @@ -168,12 +168,12 @@ export function validatePlugins(plugins: PluginList) {
"Cannot combine importAssertions and moduleAttributes plugins.",
);
}
const moduleAttributesVerionPluginOption = getPluginOption(
const moduleAttributesVersionPluginOption = getPluginOption(
plugins,
"moduleAttributes",
"version",
);
if (moduleAttributesVerionPluginOption !== "may-2020") {
if (moduleAttributesVersionPluginOption !== "may-2020") {
throw new Error(
"The 'moduleAttributes' plugin requires a 'version' option," +
" representing the last proposal update. Currently, the" +
Expand Down

0 comments on commit f8cf03c

Please sign in to comment.