Skip to content

Commit

Permalink
Add thanks @will-stone
Browse files Browse the repository at this point in the history
  • Loading branch information
grrowl committed Nov 13, 2023
1 parent 3e7f010 commit 8f79119
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,17 @@ Transpile to ES2015.

CommonJS now uses `module.exports` rather than `exports.default`. This
allows for importing in CommonJS without requiring explicit `default`. e.g.

```js
// Previous:
const flattenChildren = require("react-keyed-flatten-children")
flattenChildren.default(children)
const flattenChildren = require("react-keyed-flatten-children");
flattenChildren.default(children);
// Now:
const flattenChildren = require("react-keyed-flatten-children")
flattenChildren(children)
const flattenChildren = require("react-keyed-flatten-children");
flattenChildren(children);
```


(thanks @will-stone)

# 2.2.1

Expand Down

0 comments on commit 8f79119

Please sign in to comment.