source: imaps-frontend/node_modules/webpack-sources/lib/helpers/getSource.js

main
Last change on this file was 79a0317, checked in by stefan toskovski <stefantoska84@…>, 3 days ago

F4 Finalna Verzija

  • Property mode set to 100644
File size: 422 bytes
Line 
1/*
2 MIT License http://www.opensource.org/licenses/mit-license.php
3 Author Tobias Koppers @sokra
4*/
5
6"use strict";
7
8const getSource = (sourceMap, index) => {
9 if (index < 0) return null;
10 const { sourceRoot, sources } = sourceMap;
11 const source = sources[index];
12 if (!sourceRoot) return source;
13 if (sourceRoot.endsWith("/")) return sourceRoot + source;
14 return sourceRoot + "/" + source;
15};
16
17module.exports = getSource;
Note: See TracBrowser for help on using the repository browser.