Skip to content
This repository has been archived by the owner on Aug 1, 2022. It is now read-only.

Commit

Permalink
fix: add 'Buffer' to webpack.ProvidePlugin list
Browse files Browse the repository at this point in the history
Running the funding feature now using webpack crashes the app due to
Buffer not being available.

Signed-off-by: Nuno Alexandre <hi@nunoalexandre.com>
  • Loading branch information
NunoAlexandre committed Mar 31, 2021
1 parent 773ca6b commit 938f360
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions webpack.config.ts
Expand Up @@ -92,6 +92,7 @@ function ui(_env: unknown, argv: Argv): webpack.Configuration {
},
plugins: [
new webpack.ProvidePlugin({
Buffer: ["buffer", "Buffer"],
process: "process",
}),
new HtmlWebpackPlugin({
Expand Down

0 comments on commit 938f360

Please sign in to comment.