From 4067730f319d64b6120b7e5915f2f0615bbc6e6c Mon Sep 17 00:00:00 2001 From: AllanZhengYP <zheallan@amazon.com> Date: Fri, 24 Sep 2021 00:27:25 -0700 Subject: [PATCH] chore(lib-storage): stop bundling fs in browsers Webpack5 fails when bundler lib-storage because it requires 'fs' module. This change explicitly disable bundling fs module in browsers. --- lib/lib-storage/package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/lib-storage/package.json b/lib/lib-storage/package.json index c2869bb2c692..805ea5d9acab 100644 --- a/lib/lib-storage/package.json +++ b/lib/lib-storage/package.json @@ -53,6 +53,7 @@ } }, "browser": { + "fs": false, "stream": "stream-browserify", "./runtimeConfig": "./src/runtimeConfig.browser" },