-
-
Notifications
You must be signed in to change notification settings - Fork 395
Open
Description
[email protected] breaks htmlparser2.
version 6.0.0 is in the latest package.json of htmlparser2
htmlparser2 is expecting an export 'fromCodePoint' which isn't there anymore (after changing some imports in Tokenizer.js to fix yet another issue β ).
Changes done to Tokenizer.js:
- Original
import { EntityDecoder, DecodingMode, htmlDecodeTree, xmlDecodeTree, } from "entities/lib/decode.js";- Change:
import { EntityDecoder, DecodingMode, decode, } from "entities";
const xmlDecodeTree = (str) => decode(str);
const htmlDecodeTree = (str) => decode(str);Had to do a similar thing to Parser.js...
After changing entities's index to export fromCodePoint, everything works again.
I'm not sure if this is an entities issue or an htmlparser2's issue, but since htmlparser2 is using [email protected], I assume that at least should be changed, either point to an older version, or patch entities to 6.0.1 and point to that newer (fixed) version instead.
Thanks for looking into this @fb55 .
Hotiakov and zww0019
Metadata
Metadata
Assignees
Labels
No labels