Vertispan / j2clmavenplugin

Maven plugin to launch new J2CL compilation
https://vertispan.github.io/j2clmavenplugin/
Apache License 2.0
53 stars 26 forks source link

Added ability in watch mode to copy source maps to output folder for … #250

Open treblereel opened 8 months ago

treblereel commented 8 months ago

…only changed projects.

treblereel commented 8 months ago

@niloc132 I took another look at my previous solution and realized how to improve it. There is no need to copy the source maps into directories named after Maven modules or dependencies if we can simply overwrite the existing source maps. Yes, this might create a number of source maps related to deleted files, but I don't think that would be a major issue, as it does not affect the app development process. I moved the copying of source maps to the ClosureBundleTask, so now all source maps, including jre.js, are being copied. Therefore, the set of source maps in enableIncrementalSourcemaps now matches the default set of source maps.

PS: It seems that in j2cl:watch mode, gwt3BuildCacheDir is ignored.