taoqf / node-html-parser

A very fast HTML parser, generating a simplified DOM, with basic element query support.
MIT License
1.11k stars 107 forks source link

fix: rewrite CommonJS imports for compatibility #168

Closed rondonjon closed 2 years ago

rondonjon commented 2 years ago

Rewrite imports of CommonJS modules for better bundler compatibility.

See #167

PS: there is a .prettierrc in the root folder which my IDE found and used to reformat the code; quite a number of whitespace changes; is this intended?