diff --git a/packages/babel-plugin-syntax-import-assertions/src/index.js b/packages/babel-plugin-syntax-import-assertions/src/index.js index 4796e1445d4e..e99359e0372d 100644 --- a/packages/babel-plugin-syntax-import-assertions/src/index.js +++ b/packages/babel-plugin-syntax-import-assertions/src/index.js @@ -1,21 +1,13 @@ import { declare } from "@babel/helper-plugin-utils"; -export default declare((api, { version }) => { +export default declare(api => { api.assertVersion(7); - if (typeof version !== "string" || version !== "september-2020") { - throw new Error( - "The 'importAssertions' plugin requires a 'version' option," + - " representing the last proposal update. Currently, the" + - " only supported value is 'september-2020'.", - ); - } - return { name: "syntax-import-assertions", manipulateOptions(opts, parserOpts) { - parserOpts.plugins.push(["importAssertions", { version }]); + parserOpts.plugins.push(["importAssertions"]); }, }; });