Some projects still support node 6.
My use case is that I want to use prompts in jestjs/jest#6442
The solution for that could be fairly easy:
- Transpile the code using babel to
dist
- Create a main file that will route between
dist/index.js and lib/index.js according to the user's node version.
- Add another travis run using node 6.
It shouldn't interfere with the development, and there will be no performance change for users that use node > 8.
Let me know your thoughts.
Some projects still support node 6.
My use case is that I want to use prompts in jestjs/jest#6442
The solution for that could be fairly easy:
distdist/index.jsandlib/index.jsaccording to the user's node version.It shouldn't interfere with the development, and there will be no performance change for users that use
node > 8.Let me know your thoughts.