babel-plugin-lodash-npm-3.3.4-c7161075b6.patch 455 B

12345678910111213
  1. diff --git a/lib/index.js b/lib/index.js
  2. index 16ed6be8be8f555cc99096c2ff60954b42dc313d..d009c069770d066ad0db7ad02de1ea473a29334e 100644
  3. --- a/lib/index.js
  4. +++ b/lib/index.js
  5. @@ -99,7 +99,7 @@ function lodash(_ref) {
  6. var node = _ref3;
  7. - if ((0, _types.isModuleDeclaration)(node)) {
  8. + if ((0, _types.isImportDeclaration)(node) || (0, _types.isExportDeclaration)(node)) {
  9. isModule = true;
  10. break;
  11. }