Skip to content

JonWallsten/concat-with-existing-sourcemaps

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

concat-with-existing-sourcemaps is a simple utility that concatenates JavaScript files while also consolidating the corresponding source map files.

Based on mapcat by Eddie Cao

API

You can use the simple API. It exposes one simple function:

var bundle = require('concat-with-existing-sourcemaps').bundle;
var source = [];
var pair = {
	file: path/to/file.js,
	map: path/to/file.js.map
};
source.push(pair);
bundle(source, 'output.js', 'out.js.map', [maproot]);

Note: This api is using source root from the map file.

About

Simple JavaScript utility that combines Source Map files while concatenating JavaScript source files

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 64.7%
  • CoffeeScript 35.1%
  • Batchfile 0.2%