Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
SourceMap
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Jira
Jira
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
楊慶堂
SourceMap
Commits
e6685d66
Commit
e6685d66
authored
Apr 03, 2018
by
楊慶堂
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
HRB-2254
parent
6aca9028
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
0 deletions
+26
-0
ParseMap.js
ParseMap.js
+15
-0
package-lock.json
package-lock.json
+11
-0
No files found.
ParseMap.js
0 → 100644
View file @
e6685d66
/**
* npm install source-map
* node ParseMap.js
*/
var
sourceMap
=
require
(
'
source-map
'
);
var
fs
=
require
(
'
fs
'
);
var
rawSourceMap
=
JSON
.
parse
(
fs
.
readFileSync
(
'
test.bundle.map
'
,
'
utf8
'
));
const
whatever
=
sourceMap
.
SourceMapConsumer
.
with
(
rawSourceMap
,
null
,
consumer
=>
{
console
.
log
(
consumer
.
originalPositionFor
({
line
:
577
,
column
:
2554
}));
});
package-lock.json
0 → 100644
View file @
e6685d66
{
"requires"
:
true
,
"lockfileVersion"
:
1
,
"dependencies"
:
{
"source-map"
:
{
"version"
:
"0.7.2"
,
"resolved"
:
"https://registry.npmjs.org/source-map/-/source-map-0.7.2.tgz"
,
"integrity"
:
"sha512-NDJB/R2BS7YJG0tP9SbE4DKwKj1idLT5RJqfVYZ7dreFX7wulZT3xxVhbYKrQo9n0JkRptl51TrX/5VK3HodMA=="
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment