54 Commits

Author SHA1 Message Date
Evan Wallace
7fe623e130 fix #474: remove unused import aliases 2020-11-11 03:11:17 -08:00
Evan Wallace
a370d53517 fix #510: add the "--keep-names" option 2020-11-11 02:38:13 -08:00
Evan Wallace
53ba0353bb fix #512: omit warnings for require() inside try 2020-11-10 19:11:07 -08:00
Evan Wallace
d86fb75bee now enclosing namespace ref is visit-only 2020-11-10 03:34:23 -08:00
Evan Wallace
93b338943d move the recording of exports to end of parsing 2020-11-10 01:10:08 -08:00
Evan Wallace
f352d9fa17 comment about original export star alias 2020-11-10 01:09:42 -08:00
Evan Wallace
a115c0d0cc strict parsing of typescript's "import x =" syntax 2020-11-09 21:34:42 -08:00
Evan Wallace
70678b9aba move import equals parsing to method 2020-11-09 21:34:15 -08:00
Evan Wallace
1a97642b49 direct "eval" stops tree shaking, adds cjs wrapper 2020-11-07 03:09:09 -08:00
Evan Wallace
6ec619f2a6 mark dead code inside branching expressions 2020-11-04 20:36:52 -08:00
Evan Wallace
84985562c7 forbid "delete" on import namespace properties 2020-11-03 14:10:03 -08:00
Evan Wallace
68756c1f38 fix name collision with typescript namespaces 2020-11-02 18:21:21 -08:00
Evan Wallace
83b307f6bd fix #293: support js expressions in global names 2020-10-28 08:15:25 -07:00
Evan Wallace
4c00b53703 remove the strict option entirely 2020-10-28 07:42:57 -07:00
Evan Wallace
aa00fff4ad remove "--strict" for "??" and "?." 2020-10-28 07:42:55 -07:00
Evan Wallace
9863d70aa5 warn about "process.env.NODE_ENV" 2020-10-28 06:44:00 -07:00
Evan Wallace
0f060e1a00 omit undefined values from "__publicField" 2020-10-26 01:41:47 -07:00
Evan Wallace
4ff63d5500 omit runtime in parser tests 2020-10-26 00:53:31 -07:00
Evan Wallace
b136d4a37a publish 0.7.21 to npm 2020-10-25 03:19:38 -07:00
Evan Wallace
b7a11730ae use bracketed escape codes for non-BMP characters 2020-10-25 03:05:02 -07:00
Evan Wallace
8682a4639d DRY for js_parser_test.go 2020-10-25 00:54:41 -07:00
Evan Wallace
98a1c1af32 warn about assignment to "const" symbols 2020-10-20 22:26:48 -07:00
Evan Wallace
40c1e143de fix order of injected files 2020-10-18 00:30:07 -07:00
Evan Wallace
02c6627536 fix #451: implement "--inject" 2020-10-18 00:05:18 -07:00
Evan Wallace
3e8ceca77d fix #455: "module.require" is an alias for "require" 2020-10-16 15:13:04 -07:00
Evan Wallace
a4f25e28e8 avoid using "sourceRoot" in source maps 2020-10-13 01:07:51 -07:00
Evan Wallace
2f31833b74 fix #448: support "importsNotUsedAsValues" 2020-10-12 23:45:45 -07:00
Evan Wallace
bac750ca44 avoid cjs for most files without exports (#447) 2020-10-12 13:59:50 -07:00
Evan Wallace
877534510b lower "export * as" when target is below es2020 2020-10-10 11:19:47 -07:00
Evan Wallace
4356e316fa fix #446: bug with default+namespace imports 2020-10-10 01:18:54 -07:00
Evan Wallace
8809415340 fix #435: parse catch clause type annotations 2020-10-06 10:17:26 -07:00
Evan Wallace
9522ed1a4b fix #421: preserve order of commonjs imports 2020-10-03 03:14:43 -07:00
Evan Wallace
0a0b1f0325 rename compat table to js compat table 2020-09-29 22:03:30 -07:00
Evan Wallace
fb0153f886 import records now track a range 2020-09-26 18:22:58 -07:00
Evan Wallace
0faf4cfa57 import records are no longer js-specific 2020-09-26 18:22:58 -07:00
Evan Wallace
6f856492ca fix typescript decorators on static members 2020-09-26 18:22:50 -07:00
Evan Wallace
36116c18be fix #410: silence require.resolve() of externals 2020-09-25 20:34:05 -07:00
Evan Wallace
89920ff5cf update release notes about edge cases 2020-09-23 23:08:30 -07:00
Evan Wallace
4a39f9966a forbid labelled single-statement functions 2020-09-23 22:10:39 -07:00
Evan Wallace
448cba1174 forbid imports named "eval" or "arguments" 2020-09-23 22:01:59 -07:00
Evan Wallace
9a62ea5ed5 forbid "let let" and "const let" 2020-09-23 21:38:12 -07:00
Evan Wallace
7e489bd088 fix #409: allow newline after "let" sometimes 2020-09-23 21:25:18 -07:00
Evan Wallace
b29f211d55 disable warnings in "node_modules" (#395 and #402) 2020-09-23 11:09:57 -07:00
Evan Wallace
abcfd56ac6 add future syntax errors for arrow functions 2020-09-19 03:46:10 -07:00
Evan Wallace
3cb43c3c19 fix comments after rename 2020-09-19 02:58:40 -07:00
Evan Wallace
8bcbf35252 fix some bugs with entry point exports (#393) 2020-09-18 23:21:54 -07:00
Evan Wallace
6cda3aa96f implement typescript 4.1 key remapping 2020-09-18 20:26:03 -07:00
Evan Wallace
3627d9e3a0 asi before "as" in typescript 2020-09-18 20:18:49 -07:00
Evan Wallace
c2dbcd74b1 implement typescript 4.1 template literal types 2020-09-18 19:28:20 -07:00
Evan Wallace
bee2b297f8 lower arrow functions for es5 (#182, #297) 2020-09-18 17:26:10 -07:00