Merge pull request #6810 from backstage/timbonicus/webpack5-buffer

webpack5: Add Buffer polyfill
This commit is contained in:
Tim Hansen
2021-08-12 15:44:46 -06:00
committed by GitHub
3 changed files with 7 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
@@ -56,6 +56,7 @@
"@yarnpkg/lockfile": "^1.1.0",
"babel-plugin-dynamic-import-node": "^2.3.3",
"bfj": "^7.0.2",
"buffer": "^6.0.3",
"chalk": "^4.0.0",
"chokidar": "^3.3.1",
"commander": "^6.1.0",
+1
View File
@@ -119,6 +119,7 @@ export async function createConfig(
plugins.push(
new ProvidePlugin({
process: 'process/browser',
Buffer: ['buffer', 'Buffer'],
}),
);