Skip to content

fix: enable splitting to share symbols#3

Merged
kettanaito merged 1 commit intomainfrom
fix/shared-symbols
Apr 27, 2025
Merged

fix: enable splitting to share symbols#3
kettanaito merged 1 commit intomainfrom
fix/shared-symbols

Conversation

@kettanaito
Copy link
Copy Markdown
Member

@kettanaito kettanaito commented Apr 27, 2025

The kServers symbol was never shared between HTTP and WS, which resulted in this always yielding undefined:

const servers = Reflect.get(options.server, kServers) as Array<ServerType>

This PR enables code splitting during the build so it abstracts reused buts into a chunk, ensuring the symbol's identity.

@kettanaito kettanaito merged commit 4afbf6c into main Apr 27, 2025
1 check passed
@kettanaito kettanaito deleted the fix/shared-symbols branch April 27, 2025 12:35
@kettanaito
Copy link
Copy Markdown
Member Author

Released: v0.1.2 🎉

This has been released in v0.1.2!

Make sure to always update to the latest version (npm i @epic-web/test-server@latest) to get the newest features and bug fixes.


Predictable release automation by @ossjs/release.

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.

1 participant