Commit Graph

39 Commits

Author SHA1 Message Date
HeYunfei
1ef541eec4
feat(es/codegen): Emit comments in emit_module (#5132) 2022-07-12 15:23:24 +00:00
magic-akari
56ad09afb2
fix(es/modules): Keep TDZ for export default if possible (#5164) 2022-07-11 08:57:50 +00:00
magic-akari
997240cfe6
fix(es/modules): Add the missing span for export default (#5170) 2022-07-11 02:18:01 +00:00
magic-akari
2555d71a60
fix(es/modules): Handle top level this, really (#5160) 2022-07-09 05:33:14 +00:00
magic-akari
451f346af0
fix(es/modules): Handle top level this (#5159) 2022-07-09 02:30:01 +00:00
magic-akari
c531e67a30
fix(es/modules): Support lazy for export from (#5103) 2022-07-05 05:38:34 +00:00
magic-akari
ddb31d1fd7
feat(es/modules): Support AMD triple slash directives (#5091) 2022-07-04 04:17:34 +00:00
magic-akari
4d5783d9cd
feat(es/modules): Add pure annotations to interop functions (#5087) 2022-07-03 05:54:07 +00:00
magic-akari
52bfb18113
test(es/modules): Add test for string-names (#5088) 2022-07-03 04:38:48 +00:00
magic-akari
0a7ca2f4bb
fix(es/modules): Create an indirect call for a lazy require (#5089) 2022-07-03 03:44:56 +00:00
magic-akari
9addef6fc8
feat(es/modules): Support allowTopLevelThis (#5086) 2022-07-02 04:17:44 +00:00
magic-akari
2f2039c693
fix(es/modules): Preserve orders of exports (#5081) 2022-07-01 13:17:43 +00:00
magic-akari
9e162dcbae
fix(es/modules): Improve compatibility with cjs lexer (#5080) 2022-07-01 08:37:04 +00:00
magic-akari
1e33dbab24
feat(es/modules): Support node interop (#5069) 2022-07-01 03:28:03 +00:00
magic-akari
ef543b1b22
fix(es/modules): Handle this in class methods (#5065) 2022-06-29 11:27:06 +00:00
magic-akari
e13364f976
fix(es/modules): Handle module references in binding idents (#5055) 2022-06-28 10:47:46 +00:00
magic-akari
2cc229e6fb
feat(es/modules): Optimize a dynamic import with a literal path (#5049) 2022-06-28 06:31:24 +00:00
magic-akari
fa68cbd74a
refactor(es/module): Implement new module transformer (#4758) 2022-06-27 12:32:06 +00:00
Donny/강동윤
36d960c7e9
perf(es/hygiene): Make hygiene faster (#4952) 2022-06-15 14:36:57 +00:00
Donny/강동윤
d9bb59a8cb
fix(es/modules/cjs): FIx detection of exported names (#4737) 2022-05-21 19:55:35 +00:00
Daniel Grant
49c40afb7e
fix(es/modules): Fix handling of import.meta.url (#4670) 2022-05-15 16:44:02 +00:00
Donny/강동윤
a6d404a8c2
chore(repo): Configure prettier (#4523) 2022-05-04 14:25:28 +00:00
Donny/강동윤
5c1ce0ba05
fix(es/modules/cjs): Fix order of statements (#4361) 2022-04-18 10:57:55 +00:00
Alexander Akait
634d732803
feat(es/ast): Add raw to Str (#4071) 2022-03-22 07:54:08 +00:00
Donny/강동윤
d0f687bf44
feat(es/module/cjs): Support import.meta.url (#4087) 2022-03-19 07:05:11 +00:00
Donny/강동윤
9458f08092
feat(es/modules): Support namespaced reexports (#4073) 2022-03-18 03:03:02 +00:00
Donny/강동윤
834cd4f7b6
fix(es/modules): Use correct span for ExportAlls (#4038) 2022-03-16 17:10:47 +09:00
magic-akari
dc457b4883
fix(es/module): Use correct return values for suffix update expressions (#3927) 2022-03-09 23:14:06 +09:00
magic-akari
8559fc9623
fix(es/module): Fix exported vars with bigint values (#3909) 2022-03-09 06:30:28 +00:00
magic-akari
534fc52a72
fix(es/module): Make exported vars follow specification (#3906) 2022-03-08 09:23:40 +00:00
Donny/강동윤
8e30d83d14
fix(es/module): Revert fix for jest.spyOn 2022-03-07 18:21:14 +09:00
Donny/강동윤
6a005fc15a
fix(es/module): Visit the value of class properties (#3877) 2022-03-06 14:03:08 +09:00
Donny/강동윤
9546eefe72
fix(es/module): Fix jest.spyOn (#3845) 2022-03-04 07:04:56 +00:00
underfin
557a520a6d
feat(es/modules): Support system js (#3659) 2022-03-01 05:18:55 +00:00
magic-akari
ad0a8539e0
feat(es/module): Workaround stack overflow bug of JavaScriptCore related to too many exports (#3763) 2022-02-27 09:59:40 +00:00
magic-akari
fa0216d908
fix(es/modules): Hoist named exports (#3479) 2022-02-09 04:50:33 +00:00
David Sherret
beb2c73c2c
fix(swc/hygiene): Prefer not renaming top level variables (#2940)
swc_ecma_transforms_base:
 - `hygiene`: Use concept of depth to prevent renaming top level nodes.
2021-12-04 01:55:27 +09:00
Jeremy Grieshop
6f05c101f1
fix(es/transforms/module): Fix overriding of export * (#2883)
swc_ecma_transforms_module:
 - Emit correct value for `_exportNames`. (Closes #2101)
2021-11-28 09:08:02 +00:00
Donny/강동윤
2b2f6955f2
refactor: Flatten ecmascript (#2708) 2021-11-10 19:00:54 +09:00