testdouble / quibble

Makes it easy to replace require'd dependencies.
94 stars 25 forks source link

Don't use Node.js version number to determine loader capabilities #104

Closed giltayar closed 12 months ago

giltayar commented 12 months ago

To deal with the fact that some version of 18 will support the 20 loader API (including register and out-of-main-thread execution), we need to remove checking the version of Node.js in all the quibble code so that it can adapt to the Node.js version no matter what.

It was easier than I thought since most of the work was done previously. I did have to do a small but easy change in canRegisterLoader.