Skip to content

Commit

Permalink
initial stable commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Jon-Becker committed Feb 24, 2022
1 parent 3326549 commit a4295da
Show file tree
Hide file tree
Showing 7 changed files with 22,156 additions and 54 deletions.
22 changes: 22 additions & 0 deletions config-overrides.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
const webpack = require('webpack');

module.exports = function override(config) {
const fallback = config.resolve.fallback || {};
Object.assign(fallback, {
"crypto": require.resolve("crypto-browserify"),
"stream": require.resolve("stream-browserify"),
"assert": require.resolve("assert"),
"http": require.resolve("stream-http"),
"https": require.resolve("https-browserify"),
"os": require.resolve("os-browserify"),
"url": require.resolve("url")
})
config.resolve.fallback = fallback;
config.plugins = (config.plugins || []).concat([
new webpack.ProvidePlugin({
process: 'process/browser',
Buffer: ['buffer', 'Buffer']
})
])
return config;
}
Loading

0 comments on commit a4295da

Please sign in to comment.