The default import was deprecated ages ago, and in v12 it has now finally been changed in a breaking way. Change the code to import things the proper way.
This script only has one purpose now, let the name reflect that. It converts to CommonJS for NPM.