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
Copy file name to clipboardExpand all lines: deps/cjs-module-lexer/CHANGELOG.md
+6Lines changed: 6 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,9 @@
1
+
0.5.2
2
+
- Support named getter functions (https://github.com/guybedford/cjs-module-lexer/pull/26)
3
+
4
+
0.5.1:
5
+
- Feature: Implement specific reexport getter forms (https://github.com/guybedford/cjs-module-lexer/pull/25)
6
+
1
7
0.5.0
2
8
- Breaking Change: No longer emit Object.defineProperty exports (https://github.com/guybedford/cjs-module-lexer/pull/24)
3
9
- Doc: Update link to WASI SDK (https://github.com/guybedford/cjs-module-lexer/pull/19)
* 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