Ignore:
Timestamp:
11/25/21 22:08:24 (3 years ago)
Author:
Ema <ema_spirova@…>
Branches:
master
Children:
8d391a1
Parents:
59329aa
Message:

primeNG components

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trip-planner-front/node_modules/css/lib/stringify/source-map-support.js

    r59329aa re29cc2e  
    77var SourceMapConsumer = require('source-map').SourceMapConsumer;
    88var sourceMapResolve = require('source-map-resolve');
     9var urix = require('urix');
    910var fs = require('fs');
    1011var path = require('path');
     
    1516
    1617module.exports = mixin;
    17 
    18 /**
    19  * Ensure Windows-style paths are formatted properly
    20  */
    21 
    22 const makeFriendlyPath = function(aPath) {
    23   return path.sep === "\\" ? aPath.replace(/\\/g, "/").replace(/^[a-z]:\/?/i, "/") : aPath;
    24 }
    2518
    2619/**
     
    6457exports.emit = function(str, pos) {
    6558  if (pos) {
    66     var sourceFile = makeFriendlyPath(pos.source || 'source.css');
     59    var sourceFile = urix(pos.source || 'source.css');
    6760
    6861    this.map.addMapping({
     
    115108        var map = new SourceMapConsumer(originalMap.map);
    116109        var relativeTo = originalMap.sourcesRelativeTo;
    117         this.map.applySourceMap(map, file, makeFriendlyPath(path.dirname(relativeTo)));
     110        this.map.applySourceMap(map, file, urix(path.dirname(relativeTo)));
    118111      }
    119112    }
Note: See TracChangeset for help on using the changeset viewer.