I'm not sure if this was intentional but v10 made the importMeta option required and expects it to be import.meta. The project I'm working is still using cjs and as a result breaks when upgrading to v10. I've seen an instance where someone mocks import.meta to make things work [1] but I'd rather check here first about alternatives before going down that path.
I'm not sure if this was intentional but v10 made the
importMeta
option required and expects it to beimport.meta
. The project I'm working is still using cjs and as a result breaks when upgrading to v10. I've seen an instance where someone mocksimport.meta
to make things work [1] but I'd rather check here first about alternatives before going down that path.[1]:
importMeta: { url: pathToFileURL(__filename).href }