mirror of https://github.com/webpack/webpack.git
				
				
				
			Merge pull request #4280 from simon04/issue-4270
Fix name of contexts created using `import()`
This commit is contained in:
		
						commit
						3a8c32bea6
					
				| 
						 | 
				
			
			@ -291,7 +291,7 @@ chunk    {3} output.js (main) 414 bytes [entry] [rendered]
 | 
			
		|||
        [no exports used]
 | 
			
		||||
        harmony import a [4] ./example.js 1:0-18
 | 
			
		||||
    [1] ./~/c async ^\.\/.*$ 160 bytes {3} [built]
 | 
			
		||||
        System.import context c [4] ./example.js 8:8-27
 | 
			
		||||
        import() context c [4] ./example.js 8:8-27
 | 
			
		||||
    [4] ./example.js 243 bytes {3} [built]
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -324,6 +324,6 @@ chunk    {3} output.js (main) 414 bytes [entry] [rendered]
 | 
			
		|||
        [no exports used]
 | 
			
		||||
        harmony import a [4] ./example.js 1:0-18
 | 
			
		||||
    [1] ./~/c async ^\.\/.*$ 160 bytes {3} [built]
 | 
			
		||||
        System.import context c [4] ./example.js 8:8-27
 | 
			
		||||
        import() context c [4] ./example.js 8:8-27
 | 
			
		||||
    [4] ./example.js 243 bytes {3} [built]
 | 
			
		||||
```
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -294,7 +294,7 @@ chunk    {2} 2.output.js 38 bytes {3} [rendered]
 | 
			
		|||
chunk    {3} output.js (main) 441 bytes [entry] [rendered]
 | 
			
		||||
    > main [4] ./example.js 
 | 
			
		||||
    [0] ./templates async ^\.\/.*$ 160 bytes {3} [optional] [built]
 | 
			
		||||
        System.import context ./templates [4] ./example.js 3:23-60
 | 
			
		||||
        import() context ./templates [4] ./example.js 3:23-60
 | 
			
		||||
    [4] ./example.js 281 bytes {3} [built]
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -327,7 +327,7 @@ chunk    {2} 2.output.js 38 bytes {3} [rendered]
 | 
			
		|||
chunk    {3} output.js (main) 441 bytes [entry] [rendered]
 | 
			
		||||
    > main [4] ./example.js 
 | 
			
		||||
    [0] ./templates async ^\.\/.*$ 160 bytes {3} [optional] [built]
 | 
			
		||||
        System.import context ./templates [4] ./example.js 3:23-60
 | 
			
		||||
        import() context ./templates [4] ./example.js 3:23-60
 | 
			
		||||
    [4] ./example.js 281 bytes {3} [built]
 | 
			
		||||
 | 
			
		||||
ERROR in output.js from UglifyJs
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -16,7 +16,7 @@ class ImportContextDependency extends ContextDependency {
 | 
			
		|||
	}
 | 
			
		||||
 | 
			
		||||
	get type() {
 | 
			
		||||
		return "System.import context";
 | 
			
		||||
		return "import() context";
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	getWarnings() {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue