mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 05:53:43 +00:00 
			
		
		
		
	js: Elide .js and .ts extensions from imports and requires.
This will be required for TypeScript. Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
		
				
					committed by
					
						
						Tim Abbott
					
				
			
			
				
	
			
			
			
						parent
						
							b9184eee65
						
					
				
				
					commit
					279e4b819e
				
			@@ -3,7 +3,7 @@
 | 
			
		||||
const {JSDOM} = require("jsdom");
 | 
			
		||||
const rewiremock = require("rewiremock/node");
 | 
			
		||||
 | 
			
		||||
const events = require("./lib/events.js");
 | 
			
		||||
const events = require("./lib/events");
 | 
			
		||||
 | 
			
		||||
set_global("bridge", false);
 | 
			
		||||
 | 
			
		||||
@@ -12,7 +12,7 @@ const noop = function () {};
 | 
			
		||||
set_global("$", global.make_zjquery());
 | 
			
		||||
set_global("DOMParser", new JSDOM().window.DOMParser);
 | 
			
		||||
 | 
			
		||||
const LazySet = zrequire("lazy_set.js").LazySet;
 | 
			
		||||
const LazySet = zrequire("lazy_set").LazySet;
 | 
			
		||||
 | 
			
		||||
const _navigator = {
 | 
			
		||||
    platform: "",
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user