Skip to content

Commit

Permalink
Update code examples
Browse files Browse the repository at this point in the history
  • Loading branch information
eight04 committed Sep 20, 2018
1 parent b8d86fc commit 3e66233
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,10 +128,10 @@ Result:
```js
const foo = "foo";
const bar = "bar";
let _exports_ = {};
_exports_.foo = foo;
_exports_.bar = bar;
export default _exports_;
const _module_exports_ = {};
export {_module_exports_ as default};
_module_exports_.foo = foo;
_module_exports_.bar = bar;
```

Hoist
Expand Down Expand Up @@ -170,7 +170,7 @@ Result:

```js
let _module_exports_;
export default _module_exports_;
export {_module_exports_ as default};
if (foo) {
_module_exports_ = () => "foo";
} else {
Expand Down Expand Up @@ -239,9 +239,8 @@ console.log(module.exports);
All `module.export` and `exports` would be converted into a single reference:

```js

let _module_exports_;
export default _module_exports_;
export {_module_exports_ as default};
if (foo) {
_module_exports_ = () => "foo";
} else {
Expand Down

0 comments on commit 3e66233

Please sign in to comment.