-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
It's 2022 and most users no longer need babel. Those who do probably already have a setup to transpile node_modules to their specific needs. What do you think about releasing a new breaking version dropping babel? There's a lot of unnecessary/slow code here:
https://unpkg.com/browse/dom-form-serializer@2.0.0/dist/dom-form-serializer.mjs
It would be a good time to also include an exports map (which is also a breaking change) as described in https://www.typescriptlang.org/docs/handbook/esm-node.html#packagejson-exports-imports-and-self-referencing
{
"name": "dom-form-serializer",
"type": "module",
"exports": {
".": {
// Entry-point for `import "my-package"` in ESM
"import": "./dist/dom-form-serializer.js",
// Entry-point for `require("my-package") in CJS
"require": "./dist/dom-form-serializer.cjs",
// Types from https://github.com/jefersondaniel/dom-form-serializer/issues/11
"types": "./dist/dom-form-serializer.d.ts",
},
},
// CJS fall-back for older versions of Node.js
"main": "./dist/dom-form-serializer.cjs",
}Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels