This rush monorepo contains a single package called lib
.
It has type: "module"
set in the package.json (meaning it interprets .js
files as ESM).
Install dependencies
rush update
Running the build
cd packages/lib
rushx build
Running with jest alone
rushx jest-only # tests run with ESM
Running with Heft
rushx heft-breaks # breaks because heft somehow ignores NODE_OPTIONS=--experimental-vm-modules
Heft somehow ignores somehow ignores NODE_OPTIONS=--experimental-vm-modules
, which Jest needs in order to
run ESM.