Skip to content

Commit

Permalink
fix: webpack polyfill
Browse files Browse the repository at this point in the history
  • Loading branch information
AllenLiuxt committed Jul 29, 2022
1 parent 5fa4e5d commit 9f9c48f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ module.exports = {
'~@vite/vitejs': path.join(__dirname, '/src/vitejs/')
},
fallback: {
vm: false,
stream: false,
vm: require.resolve('vm-browserify'),
stream: require.resolve('stream-browserify'),
crypto: require.resolve('crypto-browserify'),
buffer: require.resolve('buffer/')
},
Expand Down

0 comments on commit 9f9c48f

Please sign in to comment.