From 962924c79e274be9f6f81d39eac651c1a4876bc2 Mon Sep 17 00:00:00 2001 From: Alan Agius Date: Wed, 14 Dec 2022 15:52:12 +0100 Subject: [PATCH] fix: remove `sourceURL` from emitted CSS (#1487) In this case the `sourceURL` is not needed as the entire sourcemap which contains all the information is being embedded. Multiple `sourceURL` is also causing issues when in Chrome devtools. See: https://github.com/angular/angular-cli/issues/24414 for more information. --- src/runtime/sourceMaps.js | 6 +----- test/__snapshots__/exportType.test.js.snap | 2 -- test/runtime/__snapshots__/api.test.js.snap | 2 -- test/sourceMap-option.test.js | 2 +- 4 files changed, 2 insertions(+), 10 deletions(-) diff --git a/src/runtime/sourceMaps.js b/src/runtime/sourceMaps.js index 5279eadb..14b4f16e 100644 --- a/src/runtime/sourceMaps.js +++ b/src/runtime/sourceMaps.js @@ -13,11 +13,7 @@ module.exports = (item) => { const data = `sourceMappingURL=data:application/json;charset=utf-8;base64,${base64}`; const sourceMapping = `/*# ${data} */`; - const sourceURLs = cssMapping.sources.map( - (source) => `/*# sourceURL=${cssMapping.sourceRoot || ""}${source} */` - ); - - return [content].concat(sourceURLs).concat([sourceMapping]).join("\n"); + return [content].concat([sourceMapping]).join("\n"); } return [content].join("\n"); diff --git a/test/__snapshots__/exportType.test.js.snap b/test/__snapshots__/exportType.test.js.snap index 22f0a03b..42ab05bc 100644 --- a/test/__snapshots__/exportType.test.js.snap +++ b/test/__snapshots__/exportType.test.js.snap @@ -1464,7 +1464,6 @@ a[href=\\"\\" i] { color: blue; } -/*# sourceURL=webpack://./basic-css-style-sheet.css */ /*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8uL2Jhc2ljLWNzcy1zdHlsZS1zaGVldC5jc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsZ0JBQWdCOztBQUVoQixZQUFZOztBQUVaO0VBQ0UsVUFBVTtFQUNWLG1EQUFnQztBQUNsQzs7QU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0bnl2bnZid2FPNDF4dnRWcXk3WUh6dE1BQ3E1eG5sYjlFWTNkUmR2Y0dvMWtqNXdSK3QxQW9mREcwZ00rQTg3NUU4RE5qUkNleHNyVjhQajlacVZRaXRWcnRxZWp4ZVB4ak1wbXNzNWhWVEI0YnVYdk1iMkR5VTJ0QlRSUytCanZObFZZVXBQbDdpdVZPM0dxMXVvUXgxRnRTT1cxZ1BncDVaV3JkQnRObVVEZ3Y1YXNneFE4RjFhZjV2aFkwWWp5anVXQzN3VHN6S0p6N0dCT2tjRmxRZlcyT05xNEZqV2krSGo2RFJDS3hRT0syVGxZNHg5MkV1WWQ1ZHZNQWJZSXpmaWthdTNwdTV0SjhLeGFMTGZvMGN5S2NpN3RLNFRaalVNY29YQW1Id3psZTBRL1JhQzVQMUdGTXlWeDlSOUZvOUhZcWxUclNncUR2RmVsQXFWUWE1aG11TVIvV0d0akFhQmRqd0JvRFEwWnNud1ZNWmpLWjluMFplbThEU2VEUGRyblpiTDZGMmwzTk92VVlOWms0b1ZEb1JUYWJQZTRFRE5KekIwWmNqQVl4ZW9aMmkzRk54UTdCSFl3L2NCL2ZsZGFILy9VRVRnSEhPOFM0NEtiZlhnQUFBQUJKUlU1RXJrSmdnZz09KTtcbn1cblxuYVtocmVmPScnXSB7XG4gIGNvbG9yOiByZWQ7XG59XG5cbmFbaHJlZj0nJyBpXSB7XG4gIGNvbG9yOiByZWQ7XG59XG5cbmFbaHJlZj1cIlwiXSB7XG4gIGNvbG9yOiBibHVlO1xufVxuXG5hW2hyZWY9XCJcIiBpXSB7XG4gIGNvbG9yOiBibHVlO1xufVxuIl0sInNvdXJjZVJvb3QiOiIifQ== */", } `; @@ -2644,7 +2643,6 @@ a[href=\\"\\" i] { color: blue; } -/*# sourceURL=webpack://./basic-css-style-sheet.css */ /*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8uL2Jhc2ljLWNzcy1zdHlsZ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.test.js.snap index ac100b91..447a788b 100644 --- a/test/runtime/__snapshots__/api.test.js.snap +++ b/test/runtime/__snapshots__/api.test.js.snap @@ -14,7 +14,6 @@ exports[`api should toString multiple modules 1`] = `"body { b: 2; }body { a: 1; exports[`api should toString with a source map without "sourceRoot" 1`] = ` "body { a: 1; } -/*# sourceURL=./path/to/test.scss */ /*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJmaWxlIjoidGVzdC5zY3NzIiwic291cmNlcyI6WyIuL3BhdGgvdG8vdGVzdC5zY3NzIl0sIm1hcHBpbmdzIjoiQUFBQTsifQ== */" `; @@ -28,7 +27,6 @@ exports[`api should toString with media query list, layer and supports 1`] = `"b exports[`api should toString with source mapping 1`] = ` "body { a: 1; } -/*# sourceURL=webpack://./path/to/test.scss */ /*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJmaWxlIjoidGVzdC5zY3NzIiwic291cmNlcyI6WyIuL3BhdGgvdG8vdGVzdC5zY3NzIl0sIm1hcHBpbmdzIjoiQUFBQTsiLCJzb3VyY2VSb290Ijoid2VicGFjazovLyJ9 */" `; diff --git a/test/sourceMap-option.test.js b/test/sourceMap-option.test.js index 8776db07..9e441350 100644 --- a/test/sourceMap-option.test.js +++ b/test/sourceMap-option.test.js @@ -515,7 +515,7 @@ describe('"sourceMap" option', () => { /\.js$/.test(assetName) ); - expect(chunkName).toBe("main.25338c5bc4249008fa47.bundle.js"); + expect(chunkName).toBe("main.65372f79a7419044d515.bundle.js"); expect( getModuleSource("fixtures/source-map/basic.css", stats) ).toMatchSnapshot("module");