Skip to content

Commit 3a8c32b

Browse files
authored
Merge pull request webpack#4280 from simon04/issue-4270
Fix name of contexts created using `import()`
2 parents 7a39b04 + c5b0dff commit 3a8c32b

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

examples/code-splitting-harmony/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ chunk {3} output.js (main) 414 bytes [entry] [rendered]
291291
[no exports used]
292292
harmony import a [4] ./example.js 1:0-18
293293
[1] ./~/c async ^\.\/.*$ 160 bytes {3} [built]
294-
System.import context c [4] ./example.js 8:8-27
294+
import() context c [4] ./example.js 8:8-27
295295
[4] ./example.js 243 bytes {3} [built]
296296
```
297297

@@ -324,6 +324,6 @@ chunk {3} output.js (main) 414 bytes [entry] [rendered]
324324
[no exports used]
325325
harmony import a [4] ./example.js 1:0-18
326326
[1] ./~/c async ^\.\/.*$ 160 bytes {3} [built]
327-
System.import context c [4] ./example.js 8:8-27
327+
import() context c [4] ./example.js 8:8-27
328328
[4] ./example.js 243 bytes {3} [built]
329329
```

examples/code-splitting-native-import-context/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ chunk {2} 2.output.js 38 bytes {3} [rendered]
294294
chunk {3} output.js (main) 441 bytes [entry] [rendered]
295295
> main [4] ./example.js
296296
[0] ./templates async ^\.\/.*$ 160 bytes {3} [optional] [built]
297-
System.import context ./templates [4] ./example.js 3:23-60
297+
import() context ./templates [4] ./example.js 3:23-60
298298
[4] ./example.js 281 bytes {3} [built]
299299
```
300300

@@ -327,7 +327,7 @@ chunk {2} 2.output.js 38 bytes {3} [rendered]
327327
chunk {3} output.js (main) 441 bytes [entry] [rendered]
328328
> main [4] ./example.js
329329
[0] ./templates async ^\.\/.*$ 160 bytes {3} [optional] [built]
330-
System.import context ./templates [4] ./example.js 3:23-60
330+
import() context ./templates [4] ./example.js 3:23-60
331331
[4] ./example.js 281 bytes {3} [built]
332332
333333
ERROR in output.js from UglifyJs

lib/dependencies/ImportContextDependency.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class ImportContextDependency extends ContextDependency {
1616
}
1717

1818
get type() {
19-
return "System.import context";
19+
return "import() context";
2020
}
2121

2222
getWarnings() {

0 commit comments

Comments
 (0)