Remove require name collision check for ES6 modules and later

This commit is contained in:
Mohamed Hegazy
2016-09-14 18:01:54 -07:00
parent 21c2c893b9
commit 0ad494cedb
5 changed files with 112 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
// @target: ES6
// @filename: b.ts
export default function require(s: string): void {
}
// @filename: c.ts
export const exports = 0;
export default exports;
// @filename: a.ts
import require from "./b"
require("arg");
import exports from "./c"
var x = exports + 2;