module-alias
module-alias copied to clipboard
Update index.js
Updated var keyword into let (Es6) Updated functions into arrow functions (Es6)
Hey @Dano57 ! Thanks for contributing.
I have no taken the time to port the tests to GH Actions (from Travis CI). However we do support all the way back to node v0.10
, and I believe there are no let
or arrow functions in that version...
I'll keep the PR open until I port the tests, but I will probably close it when the tests turn out to be failing.
Okay
@Kehrlann I just spent some time seeing how the tests would run in GitHub Actions. Here is what I have so far, if you want to take a look. Basically tests pass on every Node.js version except 0.10.0 and 5.x. https://github.com/jamesmortensen/module-alias/runs/5573638135?check_suite_focus=true.
I opened a pr here: https://github.com/ilearnio/module-alias/pull/126