build: fix code mocha explorer settings with ESM