Merge pull request #25970 from backstage/timbonicush/process-resolve

Switch process polyfill to require.resolve
This commit is contained in:
Patrik Oldsberg
2024-08-09 20:25:17 +02:00
committed by GitHub
2 changed files with 6 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/cli': patch
---
Switched the `process` polyfill to use `require.resolve` for greater compatability.
+1 -1
View File
@@ -180,7 +180,7 @@ export async function createConfig(
// to remove this eventually!
plugins.push(
new ProvidePlugin({
process: 'process/browser',
process: require.resolve('process/browser'),
Buffer: ['buffer', 'Buffer'],
}),
);