webpack5: add Buffer plugin

Signed-off-by: Tim Hansen <timbonicus@gmail.com>
This commit is contained in:
Tim Hansen
2021-08-12 13:37:58 -06:00
parent ec62af1da5
commit 8d07a8b038
2 changed files with 6 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/cli': patch
---
Add Buffer to `ProvidePlugin` since this is no longer provided in `webpack@5`
+1
View File
@@ -119,6 +119,7 @@ export async function createConfig(
plugins.push(
new ProvidePlugin({
process: 'process/browser',
Buffer: ['buffer', 'Buffer'],
}),
);