From 13ef5ca0f0df26af95dd947e02bdec533b4b5d9b Mon Sep 17 00:00:00 2001 From: Ben Newman Date: Thu, 4 Jul 2019 15:35:00 -0400 Subject: [PATCH] Remove comment about now-released @babel/parser@7.5.0. After updating @babel/parser to version 7.5.0, I can verify that the monkey-patching changes in PR #230 are no longer necessary, though it doesn't hurt to leave them in place, since the interception logic is restricted to versions in the 7.4.x range. The allowUndeclaredExports option is now required, as anticipated: https://github.com/babel/babel/pull/9864 --- lib/parsers/babel.js | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/parsers/babel.js b/lib/parsers/babel.js index ed559771..4eb01387 100644 --- a/lib/parsers/babel.js +++ b/lib/parsers/babel.js @@ -6,7 +6,6 @@ const babelParserVersion = require("@babel/parser/package.json").version; exports.options = { allowImportExportEverywhere: true, allowReturnOutsideFunction: true, - // This won't work until @babel/parser@7.5.0 is released. allowUndeclaredExports: true, plugins: [ "*", "flow", "jsx",