Dynamically import a module from a file URL. Tries native import() first; on VM/runner errors (e.g. Vitest "dynamic import callback was not specified") falls back to require() so CJS files load.
Dynamically import a module from a file URL. Tries native import() first; on VM/runner errors (e.g. Vitest "dynamic import callback was not specified") falls back to require() so CJS files load.