playcanvas / engine

JavaScript game engine built on WebGL, WebGPU, WebXR and glTF

Home Page:https://playcanvas.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Source map shows incorrect scope

LeXXik opened this issue · comments

commented

The scope is lost during the application load. This causes the app to fail under some conditions. Can repro in a blank project.

The scope this is pointing here should be the application instance, not the Asset:

image

Do we have a repro of this @LeXXik?

commented

I repro in a new blank project. What scope do you get, if you place a breakpoint there?

image

Feel I'm missing something here. I get this if i set breakpoint in the source itself

image

Ok this seems to be a source map issue. Adding this breakpoint gives false information in dev tools. Paging @kpal81xd, any ideas what might be going on here?

commented

Ahh okay ill have to revert the sourcemap to be inline again then