File: use-source-map-js.patch

package info (click to toggle)
node-concat-with-sourcemaps 1.0.7-4
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 148 kB
  • sloc: javascript: 447; makefile: 2
file content (17 lines) | stat: -rw-r--r-- 605 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Description: Use source-map-js instead of source-map
 source-map >= 0.7 has an async API which is incompatible.
 source-map-js is a synchronous fork of source-map 0.6.
Forwarded: not-needed

--- a/index.js
+++ b/index.js
@@ -1,6 +1,6 @@
 'use strict';
-var SourceMapGenerator = require('source-map').SourceMapGenerator;
-var SourceMapConsumer = require('source-map').SourceMapConsumer;
+var SourceMapGenerator = require('source-map-js').SourceMapGenerator;
+var SourceMapConsumer = require('source-map-js').SourceMapConsumer;
 
 function unixStylePath(filePath) {
   return filePath.replace(/\\/g, '/');