Skip to content

added is_testing env variable so that requires work better with auto bundlers like vite #180

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

raymondtri
Copy link

Title, I also set the process.env.IS_TESTING = true on all of the test scripts so that it utilizes the local package instead.

@raymondtri raymondtri marked this pull request as ready for review February 26, 2025 13:50
index.js Outdated
* @returns {Omit<Client, 'init' | 'runCallbacks'>}
*/
module.exports.init = (appId) => {
module.exports.init = (appId, networking) => {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

networking?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ahh good catch. this was not intentional. Forked this from my networking branch.

@ceifa
Copy link
Owner

ceifa commented Mar 4, 2025

I don't get how this change makes sense. Vite and other bundlers should handle relative requires just fine.

@raymondtri
Copy link
Author

I was having major issues with vite, it simply would not handle the relative requires unless I split this out.

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