Switch process polyfill to require.resolve

Signed-off-by: Tim Hansen <timbonicush@spotify.com>
This commit is contained in:
Tim Hansen
2024-08-09 12:07:10 -06:00
parent 60c102bffc
commit 6d898d8475
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'],
}),
);