Skip to content

Commit

Permalink
chore(lib-storage): stop bundling fs in browsers (#2818)
Browse files Browse the repository at this point in the history
Webpack5 fails when bundler lib-storage because it requires 'fs' module. This change explicitly disable bundling fs module in browsers.
  • Loading branch information
AllanZhengYP authored Sep 24, 2021
1 parent d5924e9 commit ae0e206
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/lib-storage/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
}
},
"browser": {
"fs": false,
"stream": "stream-browserify",
"./runtimeConfig": "./src/runtimeConfig.browser"
},
Expand Down

0 comments on commit ae0e206

Please sign in to comment.