Allow build for web by vexdev · Pull Request #2828 · glideapps/quicktype
Description
Revert imports from node:fs to fs to allow the package.json directive
"browser": {
"fs": false
}
to prevent the fs import to be packaged when building for web.
Related Issue
Fixes #2763
Motivation and Context
Fixes #2763
Previous Behaviour / Output
Builds for web were failing, unable to find node:fs
New Behaviour / Output
Builds working as expected
How Has This Been Tested?
Run a build in a sample react project with webpack