Add support for "browser" condition (e.g., as used by Webpack) by stubbing-away Node imports (fixes #1441).

This commit is contained in:
David Anson 2024-12-08 21:04:32 -08:00
parent 65eeb4c8d9
commit a009407088
6 changed files with 45 additions and 32 deletions

View file

@ -0,0 +1,7 @@
// @ts-check
"use strict";
module.exports = {
"createRequire": () => require
};