sindresorhus / import-from

Import a module like with `require()` but from a given path
MIT License
86 stars 8 forks source link

Use native `createRequireFromPath` function when available #6

Closed gillesdemey closed 5 years ago

gillesdemey commented 6 years ago

fixes #5

gillesdemey commented 6 years ago

Travis fails on Node 4 because xo is incompatible, should we just remove Node 4 from the version matrix?

gillesdemey commented 5 years ago

Done, PTAL :)

sindresorhus commented 5 years ago

createRequireFromPath is deprecated in favor of createRequire. Can you update to use that and also fix the merge conflict?