mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-22 17:00:13 +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
7
lib/node-imports-browser-module.cjs
Normal file
7
lib/node-imports-browser-module.cjs
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
// @ts-check
|
||||
|
||||
"use strict";
|
||||
|
||||
module.exports = {
|
||||
"createRequire": () => require
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue