mirror of
https://github.com/zhigang1992/create-react-app.git
synced 2026-01-12 22:46:30 +08:00
Fix overlay IE 11 compatibility (#5203)
This commit is contained in:
@@ -34,9 +34,10 @@ async function map(
|
||||
});
|
||||
await settle(
|
||||
files.map(async fileName => {
|
||||
const fetchUrl = fileName.startsWith('webpack-internal:')
|
||||
? `/__get-internal-source?fileName=${encodeURIComponent(fileName)}`
|
||||
: fileName;
|
||||
const fetchUrl =
|
||||
fileName.indexOf('webpack-internal:') === 0
|
||||
? `/__get-internal-source?fileName=${encodeURIComponent(fileName)}`
|
||||
: fileName;
|
||||
|
||||
const fileSource = await fetch(fetchUrl).then(r => r.text());
|
||||
const map = await getSourceMap(fileName, fileSource);
|
||||
|
||||
Reference in New Issue
Block a user