Skip to content

Commit 8850513

Browse files
committed
Does not attempt to resolve the perf_hooks package as it's not browser supported
1 parent 084b860 commit 8850513

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/browser-destinations/webpack.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ const unobfuscatedOutput = {
104104
mainFields: ['exports', 'module', 'browser', 'main'],
105105
extensions: ['.ts', '.js'],
106106
fallback: {
107+
perf_hooks: false, // perf_hooks is not available in the browser. This fixes a build error.
107108
vm: require.resolve('vm-browserify'),
108109
crypto: false
109110
},

0 commit comments

Comments
 (0)