Skip to content

Commit d8f1231

Browse files
authored
Merge pull request #38 from cspotcode/trace-mapping
Tests, improved ESM support, switch to @jridgewell/trace-mapping, etc
2 parents 817f84b + 990c03d commit d8f1231

12 files changed

+949
-396
lines changed

.github/workflows/continuous-integration.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ jobs:
1818
matrix:
1919
os: [ubuntu, windows]
2020
node:
21+
- 18
22+
- 17
2123
- 16
2224
- 14
2325
- 12

.vscode/launch.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"configurations": [
3+
{
4+
"name": "Debug Mocha tests",
5+
"type": "node",
6+
"request": "launch",
7+
"runtimeExecutable": "${workspaceFolder}/node_modules/.bin/_mocha",
8+
"runtimeArgs": ["--timeout", "999999999"],
9+
"outputCapture": "std",
10+
"skipFiles": [
11+
"<node_internals>/**/*.js"
12+
],
13+
}
14+
],
15+
}

browser-source-map-support.js

Lines changed: 104 additions & 104 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

Lines changed: 124 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,20 @@
1515
"/register-hook-require.d.ts",
1616
"/register-hook-require.js",
1717
"/source-map-support.d.ts",
18-
"/source-map-support.js"
18+
"/source-map-support.js",
19+
"/browser-source-map-support.js"
1920
],
2021
"dependencies": {
21-
"@cspotcode/source-map-consumer": "0.8.0"
22+
"@jridgewell/trace-mapping": "0.3.9"
2223
},
2324
"devDependencies": {
25+
"@types/lodash": "^4.14.182",
2426
"browserify": "^4.2.3",
2527
"coffeescript": "^1.12.7",
2628
"http-server": "^0.11.1",
29+
"lodash": "^4.17.21",
2730
"mocha": "^3.5.3",
31+
"semver": "^7.3.7",
2832
"source-map": "0.6.1",
2933
"webpack": "^1.15.0"
3034
},

source-map-support.d.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,15 @@
66
// Griffin Yourick <https://github.com/tough-griff>
77
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
88

9-
import { RawSourceMap } from '@cspotcode/source-map-consumer';
9+
export interface RawSourceMap {
10+
version: 3;
11+
sources: string[];
12+
names: string[];
13+
sourceRoot?: string;
14+
sourcesContent?: string[];
15+
mappings: string;
16+
file: string;
17+
}
1018

1119
/**
1220
* Output of retrieveSourceMap().

0 commit comments

Comments
 (0)