Open mcmxcdev opened 4 months ago
Hello @mcmxcdev Thank you for this feedback. Indeed, it seems we can reduce the dependencies, so we will create a ticket and assign the appropriate priority. In the meantime, if you are interested in contributing to ClerkJS we are open for PRs.
Resources:
I appreciate the openness to my suggestions! I will consider creating some PRs if I can manage to find the time.
Preliminary Checks
Reproduction
Publishable key
Description
Looking at the
package.json
below, Clerk pulls in various dependencies that can probably be dropped nowadays: https://github.com/clerk/javascript/blob/50b4176a1b8acfaff691a10ae55597834c90ce53/packages/clerk-js/package.json#L63-L68copy-to-clipboard
is a one liner nowadays withnavigator.clipboard.writeText()
core-js
andregenerator-runtime
are polyfill compatibility layers that most developers with modern tech-stacks don't care aboutqs
can be replaced with nativeURLSearchParams
APIExpected behavior: Project should be kept as slim as possible
Actual behavior: End users of Clerk have to download and install more deps, which can have CVEs and require more disk space and install time.
Environment