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

direct_install linker or installCode=false breaks sourcemaps in SDM #10049

Open
codeart1st opened this issue Nov 27, 2024 · 3 comments
Open

direct_install linker or installCode=false breaks sourcemaps in SDM #10049

codeart1st opened this issue Nov 27, 2024 · 3 comments

Comments

@codeart1st
Copy link

codeart1st commented Nov 27, 2024

GWT version: 2.12.1
Browser (with version): Chromium: 131.0.6778.85


Description

Using direct_install linker or installCode false breaks the sourcemaps.

<add-linker name="direct_install"/>

<set-configuration-property name="installCode" value="false"/>

Sourcemaps are still loaded in SDM, but points to wrong source lines, which breaks debug capabilities.

Steps to reproduce

Add <add-linker name="direct_install"/> and let the CodeServer do a full build. After that sourcemaps point to wrong source lines.

Known workarounds

Remove <add-linker name="direct_install"/> but getting CSP problems in production build.

@codeart1st
Copy link
Author

Is it possible to add the direct_install linker only for production builds?

@jnehlmeier
Copy link
Member

Is it possible to add the direct_install linker only for production builds?

You should be able to create a DevApp.gwt.xml which inherits your App.gwt.xml and in DevApp.gwt.xml you use a different linker for development. Or if you want it even more clear use something like BaseApp.gwt.xml, ProdApp.gwt.xml and DevApp.gwt.xml with prod and dev having their desired linkers and other settings (e.g. logging).

@codeart1st
Copy link
Author

You should be able to create a DevApp.gwt.xml which inherits your App.gwt.xml and in DevApp.gwt.xml you use a different linker for development. Or if you want it even more clear use something like BaseApp.gwt.xml, ProdApp.gwt.xml and DevApp.gwt.xml with prod and dev having their desired linkers and other settings (e.g. logging).

Propably the only real option. <set-configuration-property> not allow conditions with <when-property-is>.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants