@web3-onboard/blocto
Advanced tools
Comparing version 2.0.0-alpha.1 to 2.0.0
{ | ||
"name": "@web3-onboard/blocto", | ||
"version": "2.0.0-alpha.1", | ||
"version": "2.0.0", | ||
"description": "Blocto SDK wallet module for connecting to Web3-Onboard. Web3-Onboard makes it simple to connect Ethereum hardware and software wallets to your dapp. Features standardised spec compliant web3 providers for all supported wallets, framework agnostic modern javascript UI with code splitting, CSS customization, multi-chain and multi-account support, reactive wallet state subscriptions and real-time transaction state change notifications.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -31,1 +31,51 @@ # @web3-onboard/blocto | ||
``` | ||
## Build Environments | ||
For build env configurations and setups please see the Build Env section [here](https://onboard.blocknative.com/docs/modules/core#build-environments) | ||
### Webpack 4 | ||
Node built-ins are automatically bundled in v4 so that portion is handled automatically. | ||
**Blocto** support will require a Babel to compile from es6 if not already supported. See config for Babel and Webpack4 as follows | ||
`npm i --save-dev @babel/cli @babel/core @babel/node @babel/plugin-proposal-nullish-coalescing-operator @babel/plugin-proposal-optional-chaining @babel/plugin-syntax-bigint @babel/register` | ||
**AND** | ||
`npm i babel-loader` | ||
**babel.config.js** | ||
```javascript | ||
module.exports = api => { | ||
api.cache(true) | ||
const plugins = [ | ||
'@babel/plugin-proposal-optional-chaining', | ||
'@babel/plugin-proposal-nullish-coalescing-operator', | ||
'@babel/plugin-syntax-bigint' | ||
] | ||
return { plugins } | ||
} | ||
``` | ||
**webpack.config.js** | ||
```javascript | ||
config.module.rules = [ | ||
...otherModuleRules, | ||
{ | ||
test: /\.js$/, | ||
exclude: _ => !/node_modules\/(@web3auth|@ethereumjs)/.test(_), | ||
loader: 'babel-loader' | ||
} | ||
] | ||
``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
10064
0
81