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

Treat a missing sourcemap as a warning #2959

Merged
merged 2 commits into from
Oct 13, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Linting
  • Loading branch information
jeffposnick committed Oct 13, 2021
commit ae7c3cd7040e32b4c5df115f6b1e05dc33e8d230
2 changes: 1 addition & 1 deletion packages/workbox-build/src/inject-manifest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ export async function injectManifest(config: unknown): Promise<BuildResult> {
const manifestString = stringify(manifestEntries);
const filesToWrite: {[key: string]: string} = {};

const url = sourceMapURL.getFrom(swFileContents) as string;
const url = sourceMapURL.getFrom(swFileContents) as string; // eslint-disable-line
// See https://github.com/GoogleChrome/workbox/issues/2957
const {destPath, srcPath, warning} = translateURLToSourcemapPaths(
url,
Expand Down