mirror of https://github.com/webpack/webpack.git
				
				
				
			
							parent
							
								
									57b493f6ff
								
							
						
					
					
						commit
						47097196bd
					
				|  | @ -795,6 +795,7 @@ class ConcatenatedModule extends Module { | |||
| 						return false; | ||||
| 					return ( | ||||
| 						connection && | ||||
| 						connection.resolvedOriginModule === module && | ||||
| 						connection.module && | ||||
| 						connection.isTargetActive(runtime) | ||||
| 					); | ||||
|  |  | |||
|  | @ -0,0 +1,6 @@ | |||
| import "./b"; | ||||
| import "./c"; | ||||
| 
 | ||||
| import { track } from "./tracker"; | ||||
| 
 | ||||
| track("a"); | ||||
|  | @ -0,0 +1,5 @@ | |||
| import "./x"; | ||||
| 
 | ||||
| import { track } from "./tracker"; | ||||
| 
 | ||||
| track("b"); | ||||
|  | @ -0,0 +1,3 @@ | |||
| var track = require("./tracker").track; | ||||
| 
 | ||||
| track("c"); | ||||
|  | @ -0,0 +1,8 @@ | |||
| import "./x"; | ||||
| import "./y"; | ||||
| import "./a"; | ||||
| import { log } from "./tracker"; | ||||
| 
 | ||||
| it("should evaluate import in the correct order", function () { | ||||
| 	expect(log).toEqual(["b", "c", "a"]); | ||||
| }); | ||||
|  | @ -0,0 +1,5 @@ | |||
| export var log = []; | ||||
| 
 | ||||
| export function track(name) { | ||||
| 	log.push(name); | ||||
| } | ||||
|  | @ -0,0 +1 @@ | |||
| console.log.bind(console); | ||||
|  | @ -0,0 +1 @@ | |||
| console.log.bind(console); | ||||
		Loading…
	
		Reference in New Issue