Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: correct import statement #28876

Closed
wants to merge 2 commits into from
Closed

Conversation

himself65
Copy link
Member

fix #28861

JSON file can be imported now

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

@nodejs-github-bot nodejs-github-bot added the doc Issues and PRs related to the documentations. label Jul 27, 2019
@Trott
Copy link
Member

Trott commented Jul 27, 2019

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

@himself65
Copy link
Member Author

@Trott added

JSON file can be imported now
@Trott
Copy link
Member

Trott commented Jul 29, 2019

@cjihrig
Copy link
Contributor

cjihrig commented Jul 29, 2019

Still LGTM

@Trott
Copy link
Member

Trott commented Jul 29, 2019

Landed in 8a10b50

@Trott 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>
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