You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi!
I started using Web3Modal in my Meteor/Vue project and installed @web3modal/ethers as instructed in documentation. I have noticed that my build significantly increased, from ~300KB before:
⚡ Building packages to make them available to export analyzer...
⚡ Packages built in 35.06s
⚡ Building with Vite...
vite v3.2.10 building for production... ... |
✓ 202 modules transformed.
.meteor/local/vite/bundle/style.css 0.48 KiB / gzip: 0.25 KiB
.meteor/local/vite/bundle/meteor-entry.js 1162.85 KiB / gzip: 298.40 KiB
⚡ Vite build completed in 8.82s
⚡ Transpiling Vite bundle for Meteor...
⚡ Transpile completed in 11.35s
⚡ Build completed
to ~900KB after installing it:
⚡ Building packages to make them available to export analyzer...
⚡ Packages built in 55.21s
⚡ Building with Vite...
vite v3.2.10 building for production... ... \
transforming (245) node_modules/@web3modal/scaffold-ui/dist/esm/src/views/w3m-account-view/index.js
transforming (278) node_modules/@web3modal/scaffold-ui/dist/esm/src/views/w3m-wallet-compatible-networks-view/index.js
transforming (318) node_modules/@web3modal/scaffold-ui/dist/esm/src/partials/w3m-input-token/index.js
transforming (352) node_modules/@web3modal/core/dist/esm/src/controllers/BlockchainApiController.js
transforming (437) node_modules/@web3modal/ui/dist/esm/src/components/wui-loading-thumbnail/index.js
transforming (477) node_modules/@web3modal/ui/dist/esm/src/composites/wui-tooltip/index.js
transforming (517) node_modules/@web3modal/scaffold-ui/dist/esm/src/modal/w3m-router/styles.js
transforming (562) node_modules/@web3modal/scaffold-ui/dist/esm/src/partials/w3m-onramp-input/styles.js
transforming (648) node_modules/@web3modal/siwe/node_modules/@lit/reactive-element/decorators/event-options.js
✓ 1388 modules transformed.
.meteor/local/vite/bundle/meteor-entry.js 0.03 KiB / gzip: 0.05 KiB
.meteor/local/vite/bundle/index-[hash:12]2.js 10.70 KiB / gzip: 2.74 KiB
.meteor/local/vite/bundle/w3m-modal-[hash:12].js 7.90 KiB / gzip: 2.49 KiB
.meteor/local/vite/bundle/index-[hash:12]3.js 12.99 KiB / gzip: 3.64 KiB
.meteor/local/vite/bundle/style.css 0.48 KiB / gzip: 0.25 KiB
.meteor/local/vite/bundle/index-[hash:12]4.js 150.07 KiB / gzip: 40.42 KiB
.meteor/local/vite/bundle/index-[hash:12].js 228.51 KiB / gzip: 68.96 KiB
.meteor/local/vite/bundle/main-[hash:12].js 3939.13 KiB / gzip: 897.37 KiB
⚡ Vite build completed in 19.11s
⚡ Transpiling Vite bundle for Meteor...
⚡ Transpile completed in 1.1s
⚡ Build completed
In my code, I'm currently using Web3Modal in a single place, importing two functions:
import { createWeb3Modal, defaultConfig } from '@web3modal/ethers/vue';
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi!
I started using Web3Modal in my Meteor/Vue project and installed
@web3modal/ethers
as instructed in documentation. I have noticed that my build significantly increased, from ~300KB before:to ~900KB after installing it:
In my code, I'm currently using Web3Modal in a single place, importing two functions:
My current Vite configuration:
Is it normal that in this scenario my build is 3x larger? Is there something I can try to minify it further?
Thanks for any suggestion!
Beta Was this translation helpful? Give feedback.
All reactions