Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
readme clarifications
  • Loading branch information
guybedford committed Oct 31, 2020
commit 35b27659b5ec2293a7ef7224753dc504310a505e
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ It will in turn underclassify in cases where the identifiers are renamed:
})(exports);
```

`Object.defineProperty` is detected for any usage of the `__esModule` export, as well as the specific value and getter forms:
`Object.defineProperty` is detected for specifically value and getter forms returning an identifier or member expression:

```js
// DETECTS: a, b, c, d, __esModule
Expand All @@ -186,7 +186,7 @@ Object.defineProperty(exports, 'd', { value: 'd' });
Object.defineProperty(exports, '__esModule', { value: true });
```

Other getter structurs or not return a direct identifier or member expression are not detected:
Alternative object definition structures or getter function bodies are not detected:

```js
// DETECTS: NO EXPORTS
Expand Down