mirror of
https://github.com/zhigang1992/create-react-app.git
synced 2026-04-29 01:45:40 +08:00
Switch to eval-source-map (#4930)
This commit is contained in:
@@ -34,7 +34,11 @@ async function map(
|
||||
});
|
||||
await settle(
|
||||
files.map(async fileName => {
|
||||
const fileSource = await fetch(fileName).then(r => r.text());
|
||||
const fetchUrl = fileName.startsWith('webpack-internal:')
|
||||
? `/__get-internal-source?fileName=${encodeURIComponent(fileName)}`
|
||||
: fileName;
|
||||
|
||||
const fileSource = await fetch(fetchUrl).then(r => r.text());
|
||||
const map = await getSourceMap(fileName, fileSource);
|
||||
cache[fileName] = { fileSource, map };
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user