From 209d0afcac7b4bf906479af0415715de532a76ad Mon Sep 17 00:00:00 2001 From: Luca Vitucci Date: Tue, 9 Sep 2025 18:44:32 +0200 Subject: [PATCH] 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 --- packages/quicktype-core/src/input/io/NodeIO.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/quicktype-core/src/input/io/NodeIO.ts b/packages/quicktype-core/src/input/io/NodeIO.ts index b9b71ba92..1afb109f0 100644 --- a/packages/quicktype-core/src/input/io/NodeIO.ts +++ b/packages/quicktype-core/src/input/io/NodeIO.ts @@ -1,4 +1,4 @@ -import * as fs from "node:fs"; +import * as fs from "fs"; import { defined, exceptionToString } from "@glideapps/ts-necessities"; import { isNode } from "browser-or-node";