mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2026-03-08 03:12:33 +01:00
Add support for "browser" condition (e.g., as used by Webpack) by stubbing-away Node imports (fixes #1441).
This commit is contained in:
parent
65eeb4c8d9
commit
a009407088
6 changed files with 45 additions and 32 deletions
|
|
@ -14,6 +14,12 @@
|
|||
"./style/prettier": "./style/prettier.json",
|
||||
"./style/relaxed": "./style/relaxed.json"
|
||||
},
|
||||
"imports": {
|
||||
"#node-imports": {
|
||||
"browser": "./lib/node-imports-browser.mjs",
|
||||
"default": "./lib/node-imports-node.mjs"
|
||||
}
|
||||
},
|
||||
"types": "./lib/types.d.mts",
|
||||
"author": "David Anson (https://dlaa.me/)",
|
||||
"license": "MIT",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue