Getting "This is not a web-friendly file type" when trying to bundle micromark with esbuild and use in a browser #66
-
Hello, I'm the author of hypermdx that uses remark-parse that depends on micromark. I tried import hypermdx in a browser: import hypermdx from 'https://cdn.skypack.dev/hypermdx'; and came across with this error:
after further investigation I found out that the issue is caused by micromark. attempting to import import micromark from 'https://cdn.skypack.dev/micromark'; I looked in the "Source" tab in Firefox and this is what I saw:
Weirdly enough, both my question is, is it a micromark, character-entities or a skypack issue? I also tried esbuild.vercel.app (and bundling with esbuild locally) and it resulted in the same error. Possible solutionI'm still not sure what's causing that but possibly adding |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 14 replies
-
|
Beta Was this translation helpful? Give feedback.
module
field is non-standard. It could be that skypack depends on it, but it shouldn’tcharacter-entities
andparse-entities
you see have already been updated, butmicromark
hasn’t, so be wary of that you might see code which isn’t used yet