-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
I try to avoid CommonJS dependencies, because they can add a lot of infrastructure/code heft that isn't needed in modern browsers.
This module currently has two versions. The only difference is use of a function
keyword vs a lambda =>
. Lambdas have been mainsteam for 9y now. Modules have been mainstream for 7.
I don't see any easy Babel mods to convert module
to export
, and that would probably be overkill for a module basically sugar around a one-line regex. Still, for provenance and modularity, I'd rather use your module than inline my own.
Would you be amenable to a v2 PR that removes babel and converts the export format from CJS to ESM? People who need to support really old browsers can stay pinned on 1.0.
Metadata
Metadata
Assignees
Labels
No labels