mirror of
https://github.com/aspnet/JavaScriptServices.git
synced 2025-12-22 17:47:53 +00:00
Enable inline source maps
This commit is contained in:
@@ -1,6 +1,9 @@
|
||||
var babelCore = require('babel-core');
|
||||
|
||||
module.exports = function(cb, fileContents) {
|
||||
var result = babelCore.transform(fileContents, {});
|
||||
module.exports = function(cb, fileContents, url) {
|
||||
var result = babelCore.transform(fileContents, {
|
||||
sourceMaps: 'inline',
|
||||
sourceFileName: '/sourcemapped/' + url
|
||||
});
|
||||
cb(null, result.code);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user