I'm running into an issue with the node-fetch library.
The new version (3.0.3) has "type": "module" in its package.json. This is a problem because I transpile my code from ES6 to regular js which uses require and then I get ...firebase_datasource.js is an ES module file as it is a .js file whose nearest parent package.json contains "type": "module" which defines all .js files in that package scope as ES modules.
I can use an earlier version of node-fetch that doesn't contain "type": "module" in its package.json in its package.json, but that's not a solution.
What's the correct way to handle this?