Skip to content

Commit 89d7997

Browse files
committed
feat: rework into ES modules
This moves all of the sources to be ES modules rather than CommonJS. In order to produce the entrypoints, we use esbuild as a bundler (and as a transpiler in a way). Due to the fact that some dependencies are written in CommonJS, we actually use esbuild to create _two_ bundles: a CommonJS bundle, and an ES module bundle. Otherwise, someone importing the raw source would inevitably end up trying to import a CommonJS module somewhere down the tree, which would not work in browsers natively.
1 parent bea9401 commit 89d7997

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+7649
-20079
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,6 @@ coverage
2121

2222
test/auth/*
2323
!test/auth/.gitkeep
24+
25+
/chai.js
26+
/chai.cjs

0 commit comments

Comments
 (0)