workbox icon indicating copy to clipboard operation
workbox copied to clipboard

Source map support for injectManifest makes incorrect assumptions

Open steverep opened this issue 2 years ago • 5 comments

Library Affected: workbox-build

Browser & Platform: n/a

Issue or Feature Request Description: It looks like source map support was added for the Webpack plugin in #2239 when injecting the manifest. However, there is no such support for the injectManifest method in the workbox-build package. It would be helpful if the same code could be applied there, i.e. if a source map exists for swSrc then write an adjusted one for swDest.

steverep avatar Jul 25 '23 04:07 steverep

Looks like support exists but there are bugs in the implementation. I commented on the original PR.

For my case, it is appearing as if there is no support because the original source map is just being overwritten rather than writing a new one with the new filename and updating the URL.

steverep avatar Jul 26 '23 03:07 steverep

Hi there,

Workbox is moving to a new engineering team within Google. As part of this move, we're declaring a partial bug bankruptcy to allow the new team to start fresh. We realize this isn't optimal, but realistically, this is the only way we see it working. For transparency, here're the criteria we applied:

Thanks, and we hope for your understanding! The Workbox team

tomayac avatar Apr 25 '24 08:04 tomayac

@tomayac sorry I don't understand the closing issues move at all. I don't think an "if I don't see it it doesn't exist" strategy works in software development (or anywhere in life for that matter). The code hadn't been touched in almost a year, so why would issues filed within that time be stale or otherwise worthy of closing without actual triage?

This problem exists and there's a PR to fix it, so am I just supposed to open a new one just to be in 2024?

steverep avatar Apr 25 '24 15:04 steverep

Sorry, looks like this should not have been closed since it has an active PR. Reopening.

tomayac avatar Apr 25 '24 16:04 tomayac

Sorry, looks like this should not have been closed since it has an active PR. Reopening.

Thank you. I updated the PR with the recent changes so the test workflow can be run.

steverep avatar May 02 '24 15:05 steverep