Switch process polyfill to require.resolve
Signed-off-by: Tim Hansen <timbonicush@spotify.com>
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'@backstage/cli': patch
|
||||
---
|
||||
|
||||
Switched the `process` polyfill to use `require.resolve` for greater compatability.
|
||||
@@ -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'],
|
||||
}),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user