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
Now that we have switched over to roll-up with #8224, it should be straightforward to generate sourcemaps for our code. The only tricky part may be our use of pragmas which remove code from the "built" version. But roll-up hasn't let me down yet so there's a good chance it will "just work"
The text was updated successfully, but these errors were encountered:
#8659 adds sourcemaps for the unminified build. I tried adding them for the minified too, but it didn't go well. The debugger ended up in totally wrong locations.
Removing uglify fixed it, but I'm not sure why uglify would be the problem because sourcemaps are supposed to work with rollup+uglify.
To try it, add this to the end of rollup-plugin-strip-pragma's transform function:
if (options.sourcemap !== false) {
result.map = magicString.generateMap();
}
And change the two places in gulpfile.cjs with "sourcemap": debug to "sourcemap": true.
Now that we have switched over to roll-up with #8224, it should be straightforward to generate sourcemaps for our code. The only tricky part may be our use of pragmas which remove code from the "built" version. But roll-up hasn't let me down yet so there's a good chance it will "just work"
The text was updated successfully, but these errors were encountered: