Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcjihrig <cjihrig@gmail.com>2019-05-18 16:10:20 +0300
committercjihrig <cjihrig@gmail.com>2019-05-20 17:22:44 +0300
commit58a59a8d6ba2de899dd6093e644ee3cf0d4b9a0a (patch)
tree83a06a884002469306ba915c3be77279865c8801 /.eslintrc.js
parent64182e95e2e156a9b1ad7295b9657f2f69002cd1 (diff)
doc: improve createRequire() example
Update the example to use import and import.meta.url instead of require() and require.resolve(). PR-URL: https://github.com/nodejs/node/pull/27762 Fixes: https://github.com/nodejs/node/issues/27758 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com>
Diffstat (limited to '.eslintrc.js')
-rw-r--r--.eslintrc.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/.eslintrc.js b/.eslintrc.js
index ff117624f5b..55b61cea63b 100644
--- a/.eslintrc.js
+++ b/.eslintrc.js
@@ -39,6 +39,7 @@ module.exports = {
{
files: [
'doc/api/esm.md',
+ 'doc/api/modules.md',
'test/es-module/test-esm-type-flag.js',
'test/es-module/test-esm-type-flag-alias.js',
'*.mjs',