You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* The returned export names are taken to be the combination of:
117
-
1.`IDENTIFIER` and `IDENTIFIER_STRING` slots for all `EXPORTS_MEMBER` and `EXPORTS_LITERAL` matches.
118
-
2.`__esModule` if there is an `ES_MODULE_DEFINE` match.
120
+
Spacing between tokens is taken to be any ECMA-262 whitespace, ECMA-262 block comment or ECMA-262 line comment.
121
+
122
+
* The returned export names are taken to be the combination of the `IDENTIFIER` and `IDENTIFIER_STRING` slots for all `EXPORTS_MEMBER`, `EXPORTS_LITERAL` and `EXPORTS_DEFINE` matches.
119
123
* The reexport specifiers are taken to be the the combination of:
120
124
1. The `REQUIRE` matches of the last matched of either `MODULE_EXPORTS_ASSIGN` or `EXPORTS_LITERAL`.
121
125
2. All _top-level_`EXPORT_STAR``REQUIRE` matches and `EXPORTS_ASSIGN` matches whose `IDENTIFIER` also matches the first `IDENTIFIER` in `EXPORT_STAR_LIB`.
@@ -156,17 +160,66 @@ It will in turn underclassify in cases where the identifiers are renamed:
156
160
})(exports);
157
161
```
158
162
159
-
#### __esModule Detection
160
-
161
-
In addition, `__esModule` is detected as an export when set by `Object.defineProperty`:
163
+
`Object.defineProperty` is detected for specifically value and getter forms returning an identifier or member expression:
0 commit comments