Skip to content

Commit

Permalink
upgrade to typescript 5 (#70)
Browse files Browse the repository at this point in the history
  • Loading branch information
steezeburger authored Nov 22, 2024
1 parent 4958e81 commit 6ea0e23
Show file tree
Hide file tree
Showing 4 changed files with 2,974 additions and 4,693 deletions.
17 changes: 6 additions & 11 deletions web/config-overrides.js
Original file line number Diff line number Diff line change
@@ -1,24 +1,19 @@
const webpack = require("webpack");

// This file is used by react-app-rewired.
// Needed to browserify crypto for some cosmos key stuff I believe.
// FIXME - is this still needed?
// For react-app-rewired to override the default webpack configuration
module.exports = function override(config) {
const fallback = config.resolve.fallback || {};
Object.assign(fallback, {
os: require.resolve("os-browserify/browser"),
buffer: require.resolve("buffer/"),
http: require.resolve("stream-http"),
https: require.resolve("https-browserify"),
crypto: require.resolve("crypto-browserify"),
buffer: false,
crypto: false,
events: false,
path: false,
stream: require.resolve("stream-browserify"),
process: require.resolve("process/browser"),
vm: require.resolve("vm-browserify"),
string_decoder: false,
});
config.resolve.fallback = fallback;
config.plugins = (config.plugins || []).concat([
new webpack.ProvidePlugin({
process: "process/browser",
Buffer: ["buffer", "Buffer"],
}),
]);
Expand Down
Loading

0 comments on commit 6ea0e23

Please sign in to comment.