Skip to content

Commit ae0e206

Browse files
authored
chore(lib-storage): stop bundling fs in browsers (#2818)
Webpack5 fails when bundler lib-storage because it requires 'fs' module. This change explicitly disable bundling fs module in browsers.
1 parent d5924e9 commit ae0e206

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/lib-storage/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@
5454
}
5555
},
5656
"browser": {
57+
"fs": false,
5758
"stream": "stream-browserify",
5859
"./runtimeConfig": "./src/runtimeConfig.browser"
5960
},

0 commit comments

Comments
 (0)