Skip to content

Commit

Permalink
add webpack.config
Browse files Browse the repository at this point in the history
  • Loading branch information
joshimai committed Jul 8, 2024
1 parent 6e5490e commit becc945
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions webpack.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
const webpack = require('webpack');

module.exports = {
resolve: {
fallback: {
"url": require.resolve("url/"),
"buffer": require.resolve("buffer/"),
"process": require.resolve("process/browser"),
"path": require.resolve("path-browserify"),
}
},
plugins: [
new webpack.ProvidePlugin({
process: 'process/browser',
Buffer: ['buffer', 'Buffer'],
}),
],
};

0 comments on commit becc945

Please sign in to comment.