mirror of https://github.com/webpack/webpack.git
				
				
				
			
		
			
				
	
	
		
			13 lines
		
	
	
		
			683 B
		
	
	
	
		
			JavaScript
		
	
	
	
			
		
		
	
	
			13 lines
		
	
	
		
			683 B
		
	
	
	
		
			JavaScript
		
	
	
	
| // Single File Libary
 | |
| window.test(window.writing, "Lib1 Should be in first tick");
 | |
| window.test(require("./lib/component") === "lib1 component", "Lib1 component loaded");
 | |
| require.ensure(["submodule1", "submodule2"], function(require) {
 | |
| 	window.test(window.writing, "Lib1 Should be in first tick too");
 | |
| 	window.test(require("submodule1") === "submodule1", "Lib1 submodule1 loaded");
 | |
| 	window.test(require("submodule2") === "submodule2", "Lib1 submodule2 loaded");
 | |
| 	window.test(require("submodule3")() === "submodule3", "Lib1 submodule3 loaded");
 | |
| 	require.ensure([], function(require) {
 | |
| 		window.test(window.writing, "Lib1 Should be still in first tick");
 | |
| 	});
 | |
| });
 | |
| module.exports = true; |