Skip to content

chore: change build lib to output library in esm#3771

Merged
priyajeet merged 2 commits into
developmentfrom
priyajeet/connect-lib-build
Sep 19, 2025
Merged

chore: change build lib to output library in esm#3771
priyajeet merged 2 commits into
developmentfrom
priyajeet/connect-lib-build

Conversation

@priyajeet

@priyajeet priyajeet commented Sep 5, 2025

Copy link
Copy Markdown
Collaborator

In connect, the lib build is what builds the package like an npm module to be consumed by parent projects, for eg Portal. However the lib folder ends up with mangled/minified/chunked code that is hard to debug.

This PR adds a new build minimal command to do whatever the lib build does and additionally preserves all modules disabling any mangling/minifying/chunking.

Screenshot 2025-09-05 at 3 00 30 PM

TODOS:

  • Check non-lib builds work as before
  • Check portal properly minifies and bundles
  • Check monad properly minifies and bundles

@netlify

netlify Bot commented Sep 5, 2025

Copy link
Copy Markdown

Deploy Preview for wormhole-connect ready!

Name Link
🔨 Latest commit 3df1565
🔍 Latest deploy log https://app.netlify.com/projects/wormhole-connect/deploys/68cb8900ff721d0008eaafc9
😎 Deploy Preview https://deploy-preview-3771--wormhole-connect.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify

netlify Bot commented Sep 5, 2025

Copy link
Copy Markdown

Deploy Preview for wormhole-connect-mainnet ready!

Name Link
🔨 Latest commit 3df1565
🔍 Latest deploy log https://app.netlify.com/projects/wormhole-connect-mainnet/deploys/68cb8900ad8b170008e3677e
😎 Deploy Preview https://deploy-preview-3771--wormhole-connect-mainnet.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@priyajeet priyajeet changed the title chore: change uild lib to output library in esm chore: change build lib to output library in esm Sep 5, 2025
Comment thread vite.config.mts Outdated
Comment thread vite.config.mts Outdated
Comment thread vite.config.mts Outdated
Comment thread vite.config.mts Outdated
bradleyplaydon
bradleyplaydon previously approved these changes Sep 17, 2025
@priyajeet
priyajeet marked this pull request as ready for review September 19, 2025 04:39
@priyajeet
priyajeet merged commit 63d641b into development Sep 19, 2025
20 checks passed
@priyajeet
priyajeet deleted the priyajeet/connect-lib-build branch September 19, 2025 16:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants