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

doc: createRequire() improvements #27762

Merged
merged 2 commits into from
May 20, 2019
Merged

doc: createRequire() improvements #27762

merged 2 commits into from
May 20, 2019

Commits on May 20, 2019

  1. doc: improve createRequire() example

    Update the example to use import and import.meta.url instead
    of require() and require.resolve().
    
    PR-URL: nodejs#27762
    Fixes: nodejs#27758
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com>
    cjihrig committed May 20, 2019
    Configuration menu
    Copy the full SHA
    58a59a8 View commit details
    Browse the repository at this point in the history
  2. doc: replace createRequireFromPath() references

    This commit replaces createRequireFromPath() references with
    createRequire() references.
    
    PR-URL: nodejs#27762
    Fixes: nodejs#27758
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com>
    cjihrig committed May 20, 2019
    Configuration menu
    Copy the full SHA
    1b381d6 View commit details
    Browse the repository at this point in the history