Skip to content

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

Open
raymondtri wants to merge 2 commits intoceifa:mainfrom
raymondtri:adjusted-requires
Open

added is_testing env variable so that requires work better with auto bundlers like vite#180
raymondtri wants to merge 2 commits intoceifa:mainfrom
raymondtri:adjusted-requires

Conversation

@raymondtri
Copy link
Copy Markdown

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
Comment thread index.js Outdated
* @returns {Omit<Client, 'init' | 'runCallbacks'>}
*/
module.exports.init = (appId) => {
module.exports.init = (appId, networking) => {
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

networking?

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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