ESM/CSJ build & dependency reduction #42
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
tsc
build process changed to usetsup
- ESM/CJS supportjsonwebtoken
tojose
- supports ESM/CJS, treeshakable, wide range of envs and no dependencies (solved Using in Vite/Vue3 App Throws 'Uncaught TypeError: util.inherits is not a function' #15,jsonwebtoken
usesjws
and other deps which rely on couple of node libs)ENOENT: no such file or directory
Error when trying to createClient
#36pnpm
(faster and better deps tree resolution, npm already had some issues... ) and used lib build for example directlyvitest
Motivation and Context
tsc
only (Using in Vite/Vue3 App Throws 'Uncaught TypeError: util.inherits is not a function' #15, NextJSENOENT: no such file or directory
Error when trying to createClient
#36 )How Has This Been Tested?
Types of Changes
Function
client.createAuthUrl('username', 'state')
now returns a promise.