Files
nest/sample/35-use-esm-package-after-node22

How this works

We are relying on the --experimental-require-module NodeJS v22 flag so that we can load ESM packages using require()

Check out the package.json file.

About automated tests with Jest

While Jest does not supports the --experimental-require-module flag, we cannot use Jest in this project!