Skip to content

Commit b4347c7

Browse files
committed
fix: override sourcemaps to point to app/*
1 parent 792e0f9 commit b4347c7

File tree

1 file changed

+31
-10
lines changed

1 file changed

+31
-10
lines changed

package.json

Lines changed: 31 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@
141141
"sourceMaps": true,
142142
"watch": true,
143143
"sourceMapPathOverrides": {
144-
"webpack:///*": "${workspaceRoot}/*"
144+
"webpack:///*": "${workspaceRoot}/app/*"
145145
}
146146
},
147147
{
@@ -153,7 +153,7 @@
153153
"sourceMaps": true,
154154
"watch": false,
155155
"sourceMapPathOverrides": {
156-
"webpack:///*": "${workspaceRoot}/*"
156+
"webpack:///*": "${workspaceRoot}/app/*"
157157
}
158158
},
159159
{
@@ -165,7 +165,7 @@
165165
"sourceMaps": true,
166166
"watch": true,
167167
"sourceMapPathOverrides": {
168-
"webpack:///*": "${workspaceRoot}/*"
168+
"webpack:///*": "${workspaceRoot}/app/*"
169169
}
170170
},
171171
{
@@ -177,8 +177,8 @@
177177
"sourceMaps": true,
178178
"watch": false,
179179
"sourceMapPathOverrides": {
180-
"webpack:///*": "${workspaceRoot}/*"
181-
}
180+
"webpack:///*": "${workspaceRoot}/app/*"
181+
}
182182
}
183183
],
184184
"configurationSnippets": [
@@ -192,7 +192,10 @@
192192
"platform": "ios",
193193
"appRoot": "^\"\\${workspaceRoot}\"",
194194
"sourceMaps": true,
195-
"watch": true
195+
"watch": true,
196+
"sourceMapPathOverrides": {
197+
"webpack:///*": "${workspaceRoot}/app/*"
198+
}
196199
}
197200
},
198201
{
@@ -205,7 +208,10 @@
205208
"platform": "android",
206209
"appRoot": "^\"\\${workspaceRoot}\"",
207210
"sourceMaps": true,
208-
"watch": true
211+
"watch": true,
212+
"sourceMapPathOverrides": {
213+
"webpack:///*": "${workspaceRoot}/app/*"
214+
}
209215
}
210216
},
211217
{
@@ -218,7 +224,10 @@
218224
"platform": "ios",
219225
"appRoot": "^\"\\${workspaceRoot}\"",
220226
"sourceMaps": true,
221-
"watch": false
227+
"watch": false,
228+
"sourceMapPathOverrides": {
229+
"webpack:///*": "${workspaceRoot}/app/*"
230+
}
222231
}
223232
},
224233
{
@@ -231,7 +240,10 @@
231240
"platform": "android",
232241
"appRoot": "^\"\\${workspaceRoot}\"",
233242
"sourceMaps": true,
234-
"watch": false
243+
"watch": false,
244+
"sourceMapPathOverrides": {
245+
"webpack:///*": "${workspaceRoot}/app/*"
246+
}
235247
}
236248
}
237249
],
@@ -286,6 +298,11 @@
286298
"type": "boolean",
287299
"description": "Whether the watch and reconnect on file change.",
288300
"default": true
301+
},
302+
"sourceMapPathOverrides": {
303+
"type": "object",
304+
"description": "A set of mappings for rewriting the locations of source files from what the sourcemap says, to their locations on the disk.",
305+
"default": null
289306
}
290307
}
291308
},
@@ -329,7 +346,11 @@
329346
"type": "boolean",
330347
"description": "Whether the watch and reconnect on file change.",
331348
"default": true
332-
}
349+
},
350+
"sourceMapPathOverrides": {
351+
"type": "object",
352+
"description": "A set of mappings for rewriting the locations of source files from what the sourcemap says, to their locations on the disk.",
353+
"default": null
333354
}
334355
}
335356
}

0 commit comments

Comments
 (0)