How on earth did this only fail on Windows?

This commit is contained in:
Markus Olsson 2022-02-28 13:17:17 +01:00
parent daa1db2b8c
commit 4469792146

View file

@ -1,7 +1,7 @@
import * as Path from 'path'
import * as Fs from 'fs'
import fileUriToPath from 'file-uri-to-path'
import sourceMapSupport from 'source-map-support'
import { fileURLToPath } from 'url'
/**
* This array tells the source map logic which files that we can expect to
@ -23,7 +23,7 @@ function retrieveSourceMap(source: string) {
// We get a file uri when we're inside a renderer, convert to a path
if (source.startsWith('file://')) {
source = fileUriToPath(source)
source = fileURLToPath(source)
}
// We store our source maps right next to the bundle