Updated the files.
This commit is contained in:
parent
1553e6b971
commit
753967d4f5
23418 changed files with 3784666 additions and 0 deletions
17
my-app/node_modules/webpack-sources/lib/helpers/getSource.js
generated
vendored
Executable file
17
my-app/node_modules/webpack-sources/lib/helpers/getSource.js
generated
vendored
Executable file
|
@ -0,0 +1,17 @@
|
|||
/*
|
||||
MIT License http://www.opensource.org/licenses/mit-license.php
|
||||
Author Tobias Koppers @sokra
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
|
||||
const getSource = (sourceMap, index) => {
|
||||
if (index < 0) return null;
|
||||
const { sourceRoot, sources } = sourceMap;
|
||||
const source = sources[index];
|
||||
if (!sourceRoot) return source;
|
||||
if (sourceRoot.endsWith("/")) return sourceRoot + source;
|
||||
return sourceRoot + "/" + source;
|
||||
};
|
||||
|
||||
module.exports = getSource;
|
Loading…
Add table
Add a link
Reference in a new issue