Helpful search and replace regex that works most of the time...
(import .*from '\.*/[A-z-_]*)(')$1.js$2
That doesn't work if the file being imported is a folder... so fix those first.
tsc will be extremely helpful here, as there is no way to build if you get folder vs file wrong.
https://www.npmjs.com/package/bson-objectid
VS instead of https://www.npmjs.com/package/isomorphic-mongo-objectid
bson-objectid is clearly better in every way.
Helpful search and replace regex that works most of the time...
(import .*from '\.*/[A-z-_]*)(')
$1.js$2
That doesn't work if the file being imported is a folder... so fix those first. tsc will be extremely helpful here, as there is no way to build if you get folder vs file wrong.