he is typed to provide named esm exports which is not strictly true altough it works with most bundlers. he is an UMD package that sets the module.exports to an object providing the exports. Some bundlers are only exposing module.exports as the default export and no named exports. All bundlers do expose module.exports as the default export.
This change allows node-html-parser to be compatible with all bundlers by destructering the default export and no using any named exports.
he
is typed to provide named esm exports which is not strictly true altough it works with most bundlers.he
is an UMD package that sets themodule.exports
to an object providing the exports. Some bundlers are only exposingmodule.exports
as the default export and no named exports. All bundlers do exposemodule.exports
as the default export.This change allows
node-html-parser
to be compatible with all bundlers by destructering the default export and no using any named exports.