playcanvas / playcanvas-editor-ts-template

A simple TypeScript template for PlayCanvas that can also sync with your playcanvas.com project
MIT License
21 stars 9 forks source link

Add inline sourcemaps option to TS compilation #4

Closed friuns2 closed 2 years ago

friuns2 commented 2 years ago

Is it possible to debug ts playcanvas game with breakpoints?

yaustar commented 2 years ago

By default, inlineSourceMap and inlineSources are true in the tsconfig.json so the sourcemap is inlined to the built JS file

So yes, you can add breakpoints to TS source in devtools

image

I'm going to make a change to the project so there's debug and production config files to use so that a final build without source maps can be created

yaustar commented 2 years ago

Fixed as of #5