-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Very long build times (1min+), need speedups #3575
Comments
we have these target builds at the moment:
often I either use |
|
On my laptop they're 14s each .. but agree if there's a way to speed it up, I'd like it. |
What's the bottleneck? Have you considered esbuild? |
see a relevant ticket here #2103 |
@belohlavek The bottleneck (or main contributor to the build time) is Babel. If you disable Babel in the |
Probably worth investigating for a very fast build option, for development purposes, with a watcher, that allows the developer to iterate quickly on the engine. |
This PR allows you to load the engine from source without having to build it: #3850 Maybe not useful for Editor users at the moment, but maybe interesting for engine devs or anybody running the engine in Node. |
I have researched ways to get Babel to execute faster and it doesn't seem there is anything further we can do at this time. So since this isn't really a PlayCanvas issue, I'm going to close this. However, I'm still very interested in anyone's ideas to improve this. So if you think I've missed some practical thing we can be doing to achieve better build times, let me know and I can re-open the issue. |
Could we have a no babel build option for dev purposes? (Eg running against the Editor) |
Currently, the engine takes a very long to build.
npm run build
, on a good laptop (4 years old top gaming laptop), takes 1 minute and 16 seconds. And about 20 seconds forplaycanvas.js
file build.Would be great if there would be a developer-focused build target (with watch variant), that would be built within few seconds (as fast as possible), that does not need many validations, etc, but needs for a quick test during the development process.
Previously builds were way faster than now.
The text was updated successfully, but these errors were encountered: