Skip to content

feat: add source map paths for debugging with webpack #192

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jul 18, 2018
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 42 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,10 @@
"platform": "ios",
"appRoot": "${workspaceRoot}",
"sourceMaps": true,
"watch": true
"watch": true,
"sourceMapPathOverrides": {
"webpack:///*": "${workspaceRoot}/app/*"
}
},
{
"name": "Attach on iOS",
Expand All @@ -148,7 +151,10 @@
"platform": "ios",
"appRoot": "${workspaceRoot}",
"sourceMaps": true,
"watch": false
"watch": false,
"sourceMapPathOverrides": {
"webpack:///*": "${workspaceRoot}/app/*"
}
},
{
"name": "Launch on Android",
Expand All @@ -157,7 +163,10 @@
"platform": "android",
"appRoot": "${workspaceRoot}",
"sourceMaps": true,
"watch": true
"watch": true,
"sourceMapPathOverrides": {
"webpack:///*": "${workspaceRoot}/app/*"
}
},
{
"name": "Attach on Android",
Expand All @@ -166,7 +175,10 @@
"platform": "android",
"appRoot": "${workspaceRoot}",
"sourceMaps": true,
"watch": false
"watch": false,
"sourceMapPathOverrides": {
"webpack:///*": "${workspaceRoot}/app/*"
}
}
],
"configurationSnippets": [
Expand All @@ -180,7 +192,10 @@
"platform": "ios",
"appRoot": "^\"\\${workspaceRoot}\"",
"sourceMaps": true,
"watch": true
"watch": true,
"sourceMapPathOverrides": {
"webpack:///*": "${workspaceRoot}/app/*"
}
}
},
{
Expand All @@ -193,7 +208,10 @@
"platform": "android",
"appRoot": "^\"\\${workspaceRoot}\"",
"sourceMaps": true,
"watch": true
"watch": true,
"sourceMapPathOverrides": {
"webpack:///*": "${workspaceRoot}/app/*"
}
}
},
{
Expand All @@ -206,7 +224,10 @@
"platform": "ios",
"appRoot": "^\"\\${workspaceRoot}\"",
"sourceMaps": true,
"watch": false
"watch": false,
"sourceMapPathOverrides": {
"webpack:///*": "${workspaceRoot}/app/*"
}
}
},
{
Expand All @@ -219,7 +240,10 @@
"platform": "android",
"appRoot": "^\"\\${workspaceRoot}\"",
"sourceMaps": true,
"watch": false
"watch": false,
"sourceMapPathOverrides": {
"webpack:///*": "${workspaceRoot}/app/*"
}
}
}
],
Expand Down Expand Up @@ -274,6 +298,11 @@
"type": "boolean",
"description": "Whether the watch and reconnect on file change.",
"default": true
},
"sourceMapPathOverrides": {
"type": "object",
"description": "A set of mappings for rewriting the locations of source files from what the sourcemap says, to their locations on the disk.",
"default": null
}
}
},
Expand Down Expand Up @@ -317,7 +346,11 @@
"type": "boolean",
"description": "Whether the watch and reconnect on file change.",
"default": true
}
},
"sourceMapPathOverrides": {
"type": "object",
"description": "A set of mappings for rewriting the locations of source files from what the sourcemap says, to their locations on the disk.",
"default": null
}
}
}
Expand Down