Skip to content
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

Before compiling, try to fetch built js from backend #9778

Merged
merged 2 commits into from
Nov 13, 2023

Conversation

eanders-ms
Copy link
Contributor

In pxtrunner, before building the project from source, attempt to fetch the compiled game from the backend.

Tested with run.html and works locally. I'm unsure this is the best approach though, and I don't know if this will work with the share page.

@eanders-ms eanders-ms requested review from jwunderl, aznhassan and a team November 10, 2023 04:31
pxtlib/emitter/cloud.ts Outdated Show resolved Hide resolved
@eanders-ms
Copy link
Contributor Author

@aznhassan please feel free to merge this when you're ready.

@eanders-ms eanders-ms marked this pull request as ready for review November 10, 2023 22:20
@abchatra
Copy link
Collaborator

Will this change work without related backend changes?

@eanders-ms
Copy link
Contributor Author

eanders-ms commented Nov 10, 2023

The backend has an existing /js endpoint here. If it returns something unexpected, that could be a problem.

@eanders-ms
Copy link
Contributor Author

It would be safer to change the endpoint to a new one. Something like /builtjs would work.

@aznhassan aznhassan merged commit 9ef1988 into master Nov 13, 2023
6 checks passed
@aznhassan aznhassan deleted the eanders-ms/fetchbuiltsimjsinfo branch November 13, 2023 20:02
aznhassan added a commit that referenced this pull request Jan 5, 2024
* Before compiling, try to fetch built js from backend (#9778)

* Track js compilation time (#9794)

---------

Co-authored-by: Eric Anderson <[email protected]>
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.

5 participants