chai icon indicating copy to clipboard operation
chai copied to clipboard

Convert project to an ES Module

Open koddsson opened this issue 4 years ago • 0 comments

Since this is a big lift, I'm trying to split this work up into logical pieces.

This pull request sets the type key in package.json to module. I then mass renamed all the .js files to .cjs so we don't have to update all the require calls to import statements. By just doing this change, we can start to gradually convert CommonJS files (files with a .cjs extension) to ES module files (files with a .mjs or .js extension).

Closes https://github.com/chaijs/chai/pull/1411.

koddsson avatar Oct 10 '21 21:10 koddsson