Skip to content

Adds multiple wallet providers support with Web3modal #8

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 20 commits into from
Closed
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 23 additions & 1 deletion config/webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
const path = require('path')
const webpack = require('webpack')
const Dotenv = require('dotenv-webpack');

module.exports = {
mode: 'production',
Expand All @@ -8,7 +10,7 @@ module.exports = {
filename: 'index.js',
library: 'DropKit',
libraryTarget: 'umd',
libraryExport: "default",
libraryExport: 'default',
globalObject: 'this',
},
module: {
Expand All @@ -27,5 +29,25 @@ module.exports = {
},
resolve: {
extensions: ['.ts', '.js', '.tsx', '.jsx'],
fallback: {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Had a few issues with @walletconnect/web3-provider, needed this "polyfills" to work

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'util': require.resolve('util/'),
'http': require.resolve('stream-http'),
'https': require.resolve('https-browserify'),
'os': require.resolve('os-browserify/browser'),
'assert': require.resolve('assert/'),
'stream': require.resolve('stream-browserify'),
'buffer': require.resolve('buffer'),
}
},
plugins: [
// // Work around for Buffer is undefined:
// // https://github.com/webpack/changelog-v5/issues/10
new webpack.ProvidePlugin({
Buffer: ['buffer', 'Buffer'],
}),
// new webpack.ProvidePlugin({
// process: 'process/browser',
// }),
new Dotenv(),
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needed for .env. support + webpack

]
}
Loading