Skip to content
Closed
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
fixup! fixup! doc: add examples for implementing ESM
  • Loading branch information
rosaxxny committed May 12, 2020
commit 60b9a13c12f1947022624a6ee0c13e0c80ab5db1
2 changes: 0 additions & 2 deletions doc/api/esm.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ The following example of an ES module exports a function:

```js
// addTwo.js
'use strict';
function addTwo(num) {
return num + 2;
}
Expand All @@ -29,7 +28,6 @@ The following example of an ES module imports the function from `addTwo.js`:

```js
// app.js
'use strict';
import { addTwo } from './addTwo.js';

// Prints: 6
Expand Down