You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you export the following scripting examples to HTML5 with UglifyJS, they will fail to launch in the browser after exporting (although there will be no errors when exporting and minifying in C3). None of them break in the Bundle only minify mode.
These projects have no errors after exporting, no matter what minify mode they used!
More details
Affected browsers/platforms: any
First affected release:r403 as it was the first release to add the UglifyJS minifier.
System details
View details
Platform information
Product: Construct 3 r403 (beta)
Browser: Firefox 129.0
Browser engine: Gecko
Context: browser
Operating system: Windows 10
Device type: desktop
Device pixel ratio: 1
Logical CPU cores: 8
Approx. device memory: (unavailable)
User agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:129.0) Gecko/20100101 Firefox/129.0
Language setting: en-US
Local storage
Storage quota (approx): 10 gb
Storage usage (approx): 45 mb (0.4%)
Persistant storage: No
Browser support notes
This list contains missing features that are not required, but could improve performance or user experience if supported.
Rendering multiple on-screen Layout Views is slow in Firefox due to [bug 1163426](https://bugzilla.mozilla.org/show_bug.cgi?id=1163426)
Determining input device capabilities is not supported.
WebGL information
Version string: WebGL 2.0
Numeric version: 2
Supports NPOT textures: yes
Supports GPU profiling: no
Supports highp precision: yes
Vendor: Google Inc. (Intel)
Renderer: ANGLE (Intel, Intel(R) HD Graphics Direct3D11 vs_5_0 ps_5_0), or similar
Major performance caveat: no
Maximum texture size: 16384
Point size range: 1 to 1024
Extensions:
I think the issues with simple mode come down to a bug in UglifyJS - I've reported it to them here: mishoo/UglifyJS#5927
That will be followed up there.
As for the Integrated 3D engine example, that doesn't work after an advanced minify export with Closure Compiler either. I suspect that's just because it bundles a significant part of the three.js engine, and that the library has not been written to comply with the restrictions of advanced mode minification (e.g. mixing string and dot property syntax). To fix that you'd likely need to follow up with the three.js project.
FWIW I debugged three.js a bit and identified it indeed is not written to support advanced minification, and I submitted a feature request describing the problem and how to fix it.
FWIW I also identified the setting in UglifyJS that causes the bug with simple minified exports, and disabled it on the server-side, so UglifyJS exports should now work with the other samples (not using three.js) in simple or advanced minify mode.
Problem description
If you export the following scripting examples to HTML5 with UglifyJS, they will fail to launch in the browser after exporting (although there will be no errors when exporting and minifying in C3). None of them break in the
Bundle only
minify mode.Complex Terrain [breaks in
Simple
andAdvanced
minify modes]Integrated 3D engine [breaks only in
Advanced
minify mode]Snowboard 3D [breaks in
Simple
andAdvanced
minify modes]Observed result
Complex Terrain
Simple
Advanced
Snowboard 3D
Simple
Advanced
Integrated 3D engine
Advanced
Expected result
These projects have no errors after exporting, no matter what minify mode they used!
More details
Affected browsers/platforms: any
First affected release:
r403
as it was the first release to add the UglifyJS minifier.System details
View details
Platform information
Product: Construct 3 r403 (beta)
Browser: Firefox 129.0
Browser engine: Gecko
Context: browser
Operating system: Windows 10
Device type: desktop
Device pixel ratio: 1
Logical CPU cores: 8
Approx. device memory: (unavailable)
User agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:129.0) Gecko/20100101 Firefox/129.0
Language setting: en-US
Local storage
Storage quota (approx): 10 gb
Storage usage (approx): 45 mb (0.4%)
Persistant storage: No
Browser support notes
This list contains missing features that are not required, but could improve performance or user experience if supported.
WebGL information
Version string: WebGL 2.0
Numeric version: 2
Supports NPOT textures: yes
Supports GPU profiling: no
Supports highp precision: yes
Vendor: Google Inc. (Intel)
Renderer: ANGLE (Intel, Intel(R) HD Graphics Direct3D11 vs_5_0 ps_5_0), or similar
Major performance caveat: no
Maximum texture size: 16384
Point size range: 1 to 1024
Extensions:
Audio information
System sample rate: 48000 Hz
Output channels: 2
Output interpretation: speakers
Supported decode formats:
Supported encode formats:
Video information
Supported decode formats:
Supported encode formats:
The text was updated successfully, but these errors were encountered: