Skip to content

Commit

Permalink
Merge pull request #1294 from microsoft/fix/1285
Browse files Browse the repository at this point in the history
fix: add default webpack path mapping for scoped packages
  • Loading branch information
connor4312 authored Jun 8, 2022
2 parents d816d6a + ed4b51b commit ab0b7d7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions OPTIONS.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
<h5>Default value:</h4><pre><code>{
"webpack:///./~/*": "${workspaceFolder}/node_modules/*",
"webpack:////*": "/*",
"webpack://@?:*/?:*/*": "${workspaceFolder}/*",
"webpack://?:*/*": "${workspaceFolder}/*",
"webpack:///([a-z]):/(.+)": "$1:/$2",
"meteor://💻app/*": "${workspaceFolder}/*"
Expand Down Expand Up @@ -93,6 +94,7 @@
<h5>Default value:</h4><pre><code>{
"webpack:///./~/*": "${workspaceFolder}/node_modules/*",
"webpack:////*": "/*",
"webpack://@?:*/?:*/*": "${workspaceFolder}/*",
"webpack://?:*/*": "${workspaceFolder}/*",
"webpack:///([a-z]):/(.+)": "$1:/$2",
"meteor://💻app/*": "${workspaceFolder}/*"
Expand Down Expand Up @@ -140,6 +142,7 @@
<h5>Default value:</h4><pre><code>{
"webpack:///./~/*": "${workspaceFolder}/node_modules/*",
"webpack:////*": "/*",
"webpack://@?:*/?:*/*": "${workspaceFolder}/*",
"webpack://?:*/*": "${workspaceFolder}/*",
"webpack:///([a-z]):/(.+)": "$1:/$2",
"meteor://💻app/*": "${workspaceFolder}/*"
Expand Down Expand Up @@ -189,6 +192,7 @@
<h5>Default value:</h4><pre><code>{
"webpack:///./~/*": "${workspaceFolder}/node_modules/*",
"webpack:////*": "/*",
"webpack://@?:*/?:*/*": "${workspaceFolder}/*",
"webpack://?:*/*": "${workspaceFolder}/*",
"webpack:///([a-z]):/(.+)": "$1:/$2",
"meteor://💻app/*": "${workspaceFolder}/*"
Expand Down Expand Up @@ -233,6 +237,7 @@
<h5>Default value:</h4><pre><code>{
"webpack:///./~/*": "${webRoot}/node_modules/*",
"webpack:////*": "/*",
"webpack://@?:*/?:*/*": "${webRoot}/*",
"webpack://?:*/*": "${webRoot}/*",
"webpack:///([a-z]):/(.+)": "$1:/$2",
"meteor://💻app/*": "${webRoot}/*"
Expand Down Expand Up @@ -279,6 +284,7 @@
<h5>Default value:</h4><pre><code>{
"webpack:///./~/*": "${webRoot}/node_modules/*",
"webpack:////*": "/*",
"webpack://@?:*/?:*/*": "${webRoot}/*",
"webpack://?:*/*": "${webRoot}/*",
"webpack:///([a-z]):/(.+)": "$1:/$2",
"meteor://💻app/*": "${webRoot}/*"
Expand Down Expand Up @@ -332,6 +338,7 @@
<h5>Default value:</h4><pre><code>{
"webpack:///./~/*": "${webRoot}/node_modules/*",
"webpack:////*": "/*",
"webpack://@?:*/?:*/*": "${webRoot}/*",
"webpack://?:*/*": "${webRoot}/*",
"webpack:///([a-z]):/(.+)": "$1:/$2",
"meteor://💻app/*": "${webRoot}/*"
Expand Down Expand Up @@ -379,6 +386,7 @@
<h5>Default value:</h4><pre><code>{
"webpack:///./~/*": "${webRoot}/node_modules/*",
"webpack:////*": "/*",
"webpack://@?:*/?:*/*": "${webRoot}/*",
"webpack://?:*/*": "${webRoot}/*",
"webpack:///([a-z]):/(.+)": "$1:/$2",
"meteor://💻app/*": "${webRoot}/*"
Expand Down
1 change: 1 addition & 0 deletions src/configuration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -957,6 +957,7 @@ export function defaultSourceMapPathOverrides(webRoot: string): { [key: string]:
return {
'webpack:///./~/*': `${webRoot}/node_modules/*`,
'webpack:////*': '/*',
'webpack://@?:*/?:*/*': `${webRoot}/*`,
'webpack://?:*/*': `${webRoot}/*`,
'webpack:///([a-z]):/(.+)': '$1:/$2',
'meteor://💻app/*': `${webRoot}/*`,
Expand Down

0 comments on commit ab0b7d7

Please sign in to comment.