mirror of
https://github.com/mastodon/mastodon.git
synced 2024-12-23 05:11:53 +01:00
13 lines
455 B
Diff
13 lines
455 B
Diff
diff --git a/lib/index.js b/lib/index.js
|
|
index 16ed6be8be8f555cc99096c2ff60954b42dc313d..d009c069770d066ad0db7ad02de1ea473a29334e 100644
|
|
--- a/lib/index.js
|
|
+++ b/lib/index.js
|
|
@@ -99,7 +99,7 @@ function lodash(_ref) {
|
|
|
|
var node = _ref3;
|
|
|
|
- if ((0, _types.isModuleDeclaration)(node)) {
|
|
+ if ((0, _types.isImportDeclaration)(node) || (0, _types.isExportDeclaration)(node)) {
|
|
isModule = true;
|
|
break;
|
|
}
|