Skip to content

Commit 209d0af

Browse files
committed
Allow build for web
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. Fixes #2763
1 parent 4195020 commit 209d0af

File tree

1 file changed

+1
-1
lines changed
  • packages/quicktype-core/src/input/io

1 file changed

+1
-1
lines changed

packages/quicktype-core/src/input/io/NodeIO.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as fs from "node:fs";
1+
import * as fs from "fs";
22

33
import { defined, exceptionToString } from "@glideapps/ts-necessities";
44
import { isNode } from "browser-or-node";

0 commit comments

Comments
 (0)