GeezerVison is showing github.com — Unify Dependency#getExports result · webpack/webpack@5c8a4bb
File treeExpand file treeCollapse file tree Open diff view settings Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: lib/NormalModuleFactory.js +4-7Lines changed: 4 additions & 7 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -31,20 +31,17 @@ const loaderToIdent = data => { | 31 | 31 |
| 32 | 32 | const identToLoaderRequest = resultString => { | 33 | 33 | const idx = resultString.indexOf("?"); | 34 | | - let options; | 35 | | - | 36 | 34 | if (idx >= 0) { | 37 | | - options = resultString.substr(idx + 1); | 38 | | - resultString = resultString.substr(0, idx); | 39 | | - | | 35 | + const loader = resultString.substr(0, idx); | | 36 | + const options = resultString.substr(idx + 1); | 40 | 37 | return { | 41 | | - loader: resultString, | | 38 | + loader, | 42 | 39 | options | 43 | 40 | }; | 44 | 41 | } else { | 45 | 42 | return { | 46 | 43 | loader: resultString, | 47 | | - options | | 44 | + options: undefined | 48 | 45 | }; | 49 | 46 | } | 50 | 47 | }; | |
Collapse file Copy file name to clipboardExpand all lines: lib/dependencies/DelegatedExportsDependency.js +2-1Lines changed: 2 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -24,7 +24,8 @@ class DelegatedExportsDependency extends NullDependency { | 24 | 24 |
| 25 | 25 | getExports() { | 26 | 26 | return { | 27 | | - exports: this.exports | | 27 | + exports: this.exports, | | 28 | + dependencies: undefined | 28 | 29 | }; | 29 | 30 | } | 30 | 31 | } | |
Collapse file Copy file name to clipboardExpand all lines: lib/dependencies/HarmonyExportExpressionDependency.js +2-1Lines changed: 2 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -19,7 +19,8 @@ class HarmonyExportExpressionDependency extends NullDependency { | 19 | 19 |
| 20 | 20 | getExports() { | 21 | 21 | return { | 22 | | - exports: ["default"] | | 22 | + exports: ["default"], | | 23 | + dependencies: undefined | 23 | 24 | }; | 24 | 25 | } | 25 | 26 | } | |
Collapse file Copy file name to clipboardExpand all lines: lib/dependencies/HarmonyExportImportedSpecifierDependency.js +6-3Lines changed: 6 additions & 3 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -252,7 +252,8 @@ class HarmonyExportImportedSpecifierDependency extends HarmonyImportDependency { | 252 | 252 | getExports() { | 253 | 253 | if (this.name) { | 254 | 254 | return { | 255 | | - exports: [this.name] | | 255 | + exports: [this.name], | | 256 | + dependencies: undefined | 256 | 257 | }; | 257 | 258 | } | 258 | 259 |
| @@ -261,7 +262,8 @@ class HarmonyExportImportedSpecifierDependency extends HarmonyImportDependency { | 261 | 262 | if (!importedModule) { | 262 | 263 | // no imported module available | 263 | 264 | return { | 264 | | - exports: null | | 265 | + exports: null, | | 266 | + dependencies: undefined | 265 | 267 | }; | 266 | 268 | } | 267 | 269 |
| @@ -276,7 +278,8 @@ class HarmonyExportImportedSpecifierDependency extends HarmonyImportDependency { | 276 | 278 |
| 277 | 279 | if (importedModule.buildMeta.providedExports) { | 278 | 280 | return { | 279 | | - exports: true | | 281 | + exports: true, | | 282 | + dependencies: undefined | 280 | 283 | }; | 281 | 284 | } | 282 | 285 |
| |
Collapse file Copy file name to clipboardExpand all lines: lib/dependencies/HarmonyExportSpecifierDependency.js +2-1Lines changed: 2 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -19,7 +19,8 @@ class HarmonyExportSpecifierDependency extends NullDependency { | 19 | 19 |
| 20 | 20 | getExports() { | 21 | 21 | return { | 22 | | - exports: [this.name] | | 22 | + exports: [this.name], | | 23 | + dependencies: undefined | 23 | 24 | }; | 24 | 25 | } | 25 | 26 | } | |
Collapse file Copy file name to clipboardExpand all lines: lib/dependencies/JsonExportsDependency.js +2-1Lines changed: 2 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -17,7 +17,8 @@ class JsonExportsDependency extends NullDependency { | 17 | 17 |
| 18 | 18 | getExports() { | 19 | 19 | return { | 20 | | - exports: this.exports | | 20 | + exports: this.exports, | | 21 | + dependencies: undefined | 21 | 22 | }; | 22 | 23 | } | 23 | 24 | } | |
|