mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2026-04-26 09:46:01 +03:00
[GH-ISSUE #788] "Failed to resolve markdownlint-micromark" when using markdownlint in a browser build #534
Labels
No labels
bug
enhancement
enhancement
enhancement
fixed in next
fixed in next
fixed in next
new rule
new rule
new rule
pull-request
question
refactoring
refactoring
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/markdownlint#534
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @stephane-martin on GitHub (Apr 23, 2023).
Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/788
Description
I import markdownlint in a browser build using parcel (the point is to provide markdown linting to some codemirror editor). Something like:
No problem using v0.27. But from v0.28.1 i get at build time:
I guess it has something to do with CommonJS vs ES6 packaging, but I couldn't find a workaround.
Environment
parcel 2.8.3 to build a browser app (not node.js)
MDL Version
0.28.1
Expected Behavior
build successful
Actual Behavior
build fails: parcel unable to resolve markdownlint-micromark lib/
@DavidAnson commented on GitHub (Apr 24, 2023):
You should be able to load it with a script tag like the demo does:
github.com/DavidAnson/markdownlint@fcb8190781/demo/default.htm (L37)https://dlaa.me/markdownlint/
@DavidAnson commented on GitHub (Apr 24, 2023):
Or maybe you are not using the browser build? In which case, I'm not sure why your scenario is different than standard Node dependency resolution?
For example:
github.com/DavidAnson/markdownlint-cli2@0654309961