Description: Replace source-map by source-map-js
 source-map-js is a maintained fork of source-map, API-compatible with 0.6.x.
Author: Yadd <yadd@debian.org>
Forwarded: not-needed
Last-Update: 2026-03-31

---
 lib/handlebars/compiler/code-gen.js |    2 +-
 spec/source-map.js                  |    2 +-
 tests/print-script.js               |    2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

--- a/lib/handlebars/compiler/code-gen.js
+++ b/lib/handlebars/compiler/code-gen.js
@@ -8,7 +8,7 @@
   if (typeof define !== 'function' || !define.amd) {
     // We don't support this in AMD environments. For these environments, we assume that
     // they are running on the browser and thus have no need for the source-map library.
-    let SourceMap = require('source-map');
+    let SourceMap = require('source-map-js');
     SourceNode = SourceMap.SourceNode;
   }
 } catch (err) {
--- a/spec/source-map.js
+++ b/spec/source-map.js
@@ -1,6 +1,6 @@
 try {
   if (typeof define !== 'function' || !define.amd) {
-    var SourceMap = require('source-map'),
+    var SourceMap = require('source-map-js'),
       SourceMapConsumer = SourceMap.SourceMapConsumer;
   }
 } catch (err) {
--- a/tests/print-script.js
+++ b/tests/print-script.js
@@ -5,7 +5,7 @@
   verbose = process.argv[3] === '-v';
 
 var Handlebars = require('./../lib'),
-  SourceMap = require('source-map'),
+  SourceMap = require('source-map-js'),
   SourceMapConsumer = SourceMap.SourceMapConsumer;
 
 var template = Handlebars.precompile(script, {
