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
It seems that for a non-css source the sourcemap passed as return value of the transform plugin is ignored. We are observing this in rollup-plugin-styles where the generated css sourcemap that is passed is just ignored as can be seen in the reproduction. The relevant code lines are linked here. Also, please refer to my discussion with the author @Anidetrixhere.
The author of this plugin @Anidetrix is forced to add the sourcemap directly to the css string bundled in the js output file as a string. But this puts sourcemaps in two places and is extremely ugly. Ideally all sources, js or not, should be in the same map file.
Expected Behavior
The sourcemap for the CSS should be passed along the build pipeline and included in the generated sourcemap
Actual Behavior
Missing css source in sourcemap.
PS: I have tried passing the code part only ie without the sourcemap added to the code, unlike what the plugin author does. It makes no difference!
The text was updated successfully, but these errors were encountered:
It seems that for a non-css source the sourcemap passed as return value of the transform plugin is ignored. We are observing this in rollup-plugin-styles where the generated css sourcemap that is passed is just ignored as can be seen in the reproduction. The relevant code lines are linked here. Also, please refer to my discussion with the author @Anidetrix here.
The author of this plugin @Anidetrix is forced to add the sourcemap directly to the css string bundled in the js output file as a string. But this puts sourcemaps in two places and is extremely ugly. Ideally all sources, js or not, should be in the same map file.
Expected Behavior
The sourcemap for the CSS should be passed along the build pipeline and included in the generated sourcemap
Actual Behavior
Missing css source in sourcemap.
PS: I have tried passing the code part only ie without the sourcemap added to the code, unlike what the plugin author does. It makes no difference!
The text was updated successfully, but these errors were encountered: