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:
Anders Kaseorg
2020-08-28 19:08:14 -07:00
committed by Tim Abbott
parent b9184eee65
commit 279e4b819e
24 changed files with 293 additions and 296 deletions

View File

@@ -1,6 +1,6 @@
"use strict";
const LazySet = zrequire("lazy_set.js").LazySet;
const LazySet = zrequire("lazy_set").LazySet;
const noop = () => {};
global.stub_templates(() => noop);