fix: detect createRequire
when imported with node:
prefix
#16904
+23
−4
createRequire
when imported with node:
prefix
#16904