FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

docs: correct import statement by himself65 · Pull Request #28876 · nodejs/node · GitHub

/ node Public

docs: correct import statement - #28876

Closed
himself65 wants to merge 2 commits into
nodejs:masterfrom
himself65:28861
Closed

docs: correct import statement#28876
himself65 wants to merge 2 commits into
nodejs:masterfrom
himself65:28861

Conversation

Copy link
Copy Markdown
Member

fix #28861

JSON file can be imported now

// index.mjs
import pkg from  '../package.json'
console.log(pkg)
Checklist

nodejs-github-bot added the doc Issues and PRs related to the documentations. label Jul 27, 2019

Trott commented Jul 27, 2019

Copy link
Copy Markdown
Member

Should JSON be added to the previous line listing allowable things to import?

Copy link
Copy Markdown
Member Author

@Trott added

JSON file can be imported now

Trott commented Jul 29, 2019

Copy link
Copy Markdown
Member

cjihrig commented Jul 29, 2019

Copy link
Copy Markdown
Contributor

Still LGTM

Trott commented Jul 29, 2019

Copy link
Copy Markdown
Member

Landed in 8a10b50

Trott closed this Jul 29, 2019
Trott pushed a commit to Trott/io.js that referenced this pull request Jul 29, 2019
JSON file can be imported now

PR-URL: nodejs#28876
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
targos pushed a commit that referenced this pull request Aug 2, 2019
JSON file can be imported now

PR-URL: #28876
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

doc Issues and PRs related to the documentations.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

doc: json support with node@12.7 esm modules

5 participants


Back | FazBrowse Home | New Git URL