-
-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: initial support for source-maps (#19)
BREAKING CHANGE: v8-to-istanbul is now async, making it possible to use the latest source-map library
- Loading branch information
Showing
17 changed files
with
853 additions
and
229 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
const Script = require('./lib/script') | ||
const V8ToIstanbul = require('./lib/v8-to-istanbul') | ||
|
||
module.exports = function (path, wrapperLength) { | ||
return new Script(path, wrapperLength) | ||
return new V8ToIstanbul(path, wrapperLength) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
/* | ||
Copyright 2015, Yahoo Inc. | ||
Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms. | ||
*/ | ||
|
||
// pulled from: https://github.com/istanbuljs/istanbuljs | ||
'use strict' | ||
|
||
const path = require('path') | ||
|
||
module.exports = { | ||
isAbsolute: path.isAbsolute, | ||
relativeTo (file, origFile) { | ||
const p = path.isAbsolute(file) | ||
? file | ||
: path.resolve(path.dirname(origFile), file) | ||
return path.relative(process.cwd(), p) | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.