Skip to content

Commit

Permalink
feat: rework into ES modules
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
43081j committed Jan 20, 2023
1 parent bea9401 commit 89d7997
Show file tree
Hide file tree
Showing 42 changed files with 7,649 additions and 20,079 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,6 @@ coverage

test/auth/*
!test/auth/.gitkeep

/chai.js
/chai.cjs
Loading

0 comments on commit 89d7997

Please sign in to comment.