are-you-es5 icon indicating copy to clipboard operation
are-you-es5 copied to clipboard

highlight.js not recognized as non-es5

Open trigun539 opened this issue 3 years ago • 2 comments

Highlight v10 starts to use es6 features but it is not getting picked up by are-you-es5.

trigun539 avatar Sep 29 '20 10:09 trigun539

@trigun539 Can you share how you installed highlight.js? When I did an npm install it looks like I got a package intended for Node.js and I don't see any ES6 syntax in its index file at least (although lib/core.js uses classes). I looked at their build pipeline and I noticed that building for the browser is supported but I'm not sure how to get that version. Is the version that's installed via NPM intended for browser usage?

I think this case could have been caught if #2 is implemented.

obahareth avatar Sep 30 '20 13:09 obahareth

@obahareth I did simple npm i -D highlight.js Yes, it seems like it will be fixed when #2 is fixed. Just wanted to add it in there as another use case/example.

trigun539 avatar Sep 30 '20 13:09 trigun539