Fixed source mapping URLs

This commit is contained in:
squidfunk 2021-02-25 15:56:08 +01:00
parent c061923b70
commit 1aacca36a2
4 changed files with 4 additions and 4 deletions

View File

@ -28,5 +28,5 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE. PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */ ***************************************************************************** */
//# sourceMappingURL=bundle.4e3fea51.min.js //# sourceMappingURL=bundle.4e3fea51.min.js.map

View File

@ -57,5 +57,5 @@
* Copyright (C) 2020 Oliver Nightingale * Copyright (C) 2020 Oliver Nightingale
* @license MIT * @license MIT
*/ */
//# sourceMappingURL=search.f5903571.min.js //# sourceMappingURL=search.f5903571.min.js.map

View File

@ -15,5 +15,5 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE. PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */ ***************************************************************************** */
//# sourceMappingURL=bundle.a8da887a.min.js //# sourceMappingURL=bundle.a8da887a.min.js.map

View File

@ -183,7 +183,7 @@ export function transformScript(
fs.writeFile(`${file}.map`, map), fs.writeFile(`${file}.map`, map),
fs.writeFile(`${file}`, js.replace( fs.writeFile(`${file}`, js.replace(
/(sourceMappingURL=)(.*)/, /(sourceMappingURL=)(.*)/,
`$1${path.basename(file)}\n` `$1${path.basename(file)}.map\n`
)), )),
)) ))
) )