diff --git a/packages/common/package.json b/packages/common/package.json index 3ef00cb11..d6a146080 100644 --- a/packages/common/package.json +++ b/packages/common/package.json @@ -1,6 +1,6 @@ { "name": "@web3-onboard/common", - "version": "2.1.7-alpha.1", + "version": "2.1.7-alpha.2", "description": "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.", "keywords": [ "Ethereum", @@ -73,6 +73,7 @@ "prettier-plugin-svelte": "^2.4.0", "rollup": "^2.3.4", "rollup-plugin-svelte": "^7.0.0", + "rollup-plugin-terser": "^7.0.2", "svelte": "^3.42.5", "svelte-check": "^2.2.6", "svelte-preprocess": "^4.9.4", diff --git a/packages/common/rollup.config.js b/packages/common/rollup.config.js index aa41939bf..a249675be 100644 --- a/packages/common/rollup.config.js +++ b/packages/common/rollup.config.js @@ -4,6 +4,7 @@ import replace from '@rollup/plugin-replace' import json from '@rollup/plugin-json' import sveltePreprocess from 'svelte-preprocess' import typescript from '@rollup/plugin-typescript' +import { terser } from 'rollup-plugin-terser' const production = !process.env.ROLLUP_WATCH @@ -11,7 +12,8 @@ export default { input: 'src/index.ts', output: { format: 'esm', - dir: 'dist/' + dir: 'dist/', + sourcemap: true, }, plugins: [ json(), @@ -33,6 +35,18 @@ export default { typescript({ sourceMap: !production, inlineSources: !production + }), + production && terser({ + ecma: 2020, + mangle: { toplevel: true }, + compress: { + module: true, + toplevel: true, + unsafe_arrows: true, + drop_console: production, + drop_debugger: production + }, + output: { quote_style: 1 } }) ], external: ['joi', 'rxjs', 'ethers', '@ethereumjs/common'] diff --git a/packages/core/package.json b/packages/core/package.json index 1eebb904a..a54413874 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,6 +1,6 @@ { "name": "@web3-onboard/core", - "version": "2.6.0-alpha.2", + "version": "2.6.0-alpha.3", "description": "Web3-Onboard makes it simple to connect Ethereum hardware and software wallets to your dapp. Features standardized 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.", "keywords": [ "Ethereum", @@ -75,13 +75,14 @@ "prettier-plugin-svelte": "^2.4.0", "rollup": "^2.3.4", "rollup-plugin-svelte": "^7.0.0", + "rollup-plugin-terser": "^7.0.2", "svelte-check": "^2.2.6", "svelte-preprocess": "^4.9.4", "tslib": "^2.0.0", "typescript": "^4.5.5" }, "dependencies": { - "@web3-onboard/common": "^2.1.7-alpha.1", + "@web3-onboard/common": "^2.1.7-alpha.2", "bignumber.js": "^9.0.0", "bnc-sdk": "^4.4.1", "bowser": "^2.11.0", diff --git a/packages/core/rollup.config.js b/packages/core/rollup.config.js index 0995d1e78..d19cff1f8 100644 --- a/packages/core/rollup.config.js +++ b/packages/core/rollup.config.js @@ -5,6 +5,7 @@ import json from '@rollup/plugin-json' import sveltePreprocess from 'svelte-preprocess' import typescript from '@rollup/plugin-typescript' import copy from '@rollup-extras/plugin-copy' +import { terser } from 'rollup-plugin-terser' const production = !process.env.ROLLUP_WATCH @@ -12,7 +13,8 @@ export default { input: 'src/index.ts', output: { format: 'es', - dir: 'dist/' + dir: 'dist/', + sourcemap: true, }, plugins: [ json(), @@ -38,6 +40,18 @@ export default { copy({ src: 'src/i18n/en.json', dest: 'i18n' + }), + production && terser({ + ecma: 2020, + mangle: { toplevel: true }, + compress: { + module: true, + toplevel: true, + unsafe_arrows: true, + drop_console: production, + drop_debugger: production + }, + output: { quote_style: 1 } }) ], external: [ diff --git a/packages/react/package.json b/packages/react/package.json index dc21b5729..d63f89c68 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -1,6 +1,6 @@ { "name": "@web3-onboard/react", - "version": "2.2.5-alpha.1", + "version": "2.2.5-alpha.3", "description": "A collection of React hooks for integrating Web3-Onboard in to React and Next.js projects. 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, 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.", "keywords": [ "Ethereum", @@ -62,8 +62,8 @@ "typescript": "^4.5.5" }, "dependencies": { - "@web3-onboard/core": "^2.6.0-alpha.2", - "@web3-onboard/common": "^2.1.7-alpha.1", + "@web3-onboard/core": "^2.6.0-alpha.3", + "@web3-onboard/common": "^2.1.7-alpha.2", "use-sync-external-store": "1.0.0" }, "peerDependencies": { diff --git a/packages/vue/package.json b/packages/vue/package.json index a76b0e611..1fedcaa75 100644 --- a/packages/vue/package.json +++ b/packages/vue/package.json @@ -1,6 +1,6 @@ { "name": "@web3-onboard/vue", - "version": "2.1.5-alpha.1", + "version": "2.1.5-alpha.3", "description": "A collection of Vue Composables for integrating Web3-Onboard in to a Vue or Nuxt project. 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, 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.", "keywords": [ "Ethereum", @@ -62,8 +62,8 @@ "dependencies": { "@vueuse/core": "^8.4.2", "@vueuse/rxjs": "^8.2.0", - "@web3-onboard/common": "^2.1.7-alpha.1", - "@web3-onboard/core": "^2.6.0-alpha.2", + "@web3-onboard/common": "^2.1.7-alpha.2", + "@web3-onboard/core": "^2.6.0-alpha.3", "vue-demi": "^0.12.4" }, "peerDependencies": {