Donny/강동윤
a417ff4d86
feat(allocator): Add maybe
types ( #9278 )
2024-07-19 13:22:34 +09:00
magic-akari
3bf3a62505
doc(es/minifier): Update examples code ( #8652 )
...
**Related issue:**
- Closes #8651
The core logic of SWC is correct, but there are incorrect code examples in our code repository.
2024-02-21 02:11:19 +00:00
Donny/강동윤
9a0572b968
refactor(swc_node_base): Rename to swc_malloc
( #8272 )
...
**Description:**
This is quite convinient.
2023-11-11 19:10:56 +00:00
Donny/강동윤
ee7575695d
feat(es/codegen): Add an option to print assert
for import attributes ( #7914 )
...
**Description:**
- `jsc.experimental.keepImportAssertions` is renamed to `jsc.experimental.keepImportAttributes`.
- `jsc.experimental.emitAssertForImportAttributes` is added.
**Related issue:**
- Closes #7908
2023-09-05 21:24:25 +09:00
Donny/강동윤
ec7e913815
fix(es/minifier): Make name mangler respect toplevel
( #6774 )
...
**Related issue:**
- Closes https://github.com/swc-project/swc/issues/6418 .
2023-01-10 06:42:49 +00:00
Donny/강동윤
9d29abcd5b
chore(es/minifier): Fix size calculator script ( #5767 )
2022-09-06 22:23:57 +09:00
Donny/강동윤
4e989807d7
chore(es/minifier): Fix example ( #5739 )
2022-09-04 22:18:05 +09:00
Donny/강동윤
a06e6e9ce5
fix(es/minifier): Fix alias analyzer ( #5639 )
2022-08-26 10:06:25 +00:00
Donny/강동윤
d44bbffa02
fix(es/minifier): Revert alias analyzer work ( #5634 )
2022-08-26 08:45:49 +00:00
Donny/강동윤
00e635b9ea
fix(es/minifier): Improve alias analyzer ( #5500 )
2022-08-26 07:56:40 +00:00
Donny/강동윤
99a474cb2d
refactor(es/minifier): Use Program
instead of Module
( #4969 )
2022-06-14 16:33:38 +00:00
Donny/강동윤
eb8508f88c
feat(es/codegen): Implement ascii-only ( #4660 )
2022-05-15 05:07:21 +00:00
Donny/강동윤
b393773373
feat(debug): Inline dbg-swc
( #4651 )
2022-05-13 06:05:21 +00:00
Donny/강동윤
53610fdafc
feat(es/resolver): Use different syntax context for unresolved refs ( #4436 )
...
- We don't need a list of bindings to check if an identifier is unresolved.
- Checking if an identifier is unresolved is now one CPU instruction.
- Previously it was one hashmap operation.
- This PR also improves performance, by removing the hashmaps mentioned above.
2022-04-26 07:38:50 +00:00
Donny/강동윤
4c9e5c01ef
perf(es/minifier): Add some fast-path to the MultiReplacer
( #4408 )
2022-04-23 19:53:21 +09:00
Donny/강동윤
efdf93d910
chore(es/minifier): Add a script to instrument real-world inputs ( #4399 )
2022-04-22 10:37:04 +00:00
Donny/강동윤
2563c7f8ff
chore(es/minifier): Improve scripts ( #4339 )
2022-04-17 19:53:47 +09:00
Donny/강동윤
97dfcb9ccb
chore(es/minifier): Add logging ( #4156 )
2022-03-25 06:44:07 +00:00
Donny/강동윤
a47eed7241
perf(es/minifier): Add a fast-path to export merger ( #3891 )
2022-03-07 14:21:57 +09:00
Donny/강동윤
3d944656bf
refactor(es): Make compilation faster ( #3749 )
2022-02-26 06:41:14 +00:00
Donny/강동윤
fd0e952aec
perf(es/minifier): Fix performance bug of the mangler ( #3633 )
...
swc_ecma_minifier:
- Use a bi-directional hashmap instead of iterating all keys.
2022-02-19 10:31:54 +00:00
Donny/강동윤
9b76783281
refactor(common): Cleanup & rustfmt ( #3495 )
...
swc_common:
- Merge identical source codes.
swc_css_parser:
- Deny `clippy::all`.
- Fix lints.
2022-02-09 06:33:32 +00:00
Donny/강동윤
978de5943e
chore(ci): Configure clippy
( #3250 )
2022-01-13 23:06:11 +09:00
Donny/강동윤
1c1c9f0eae
fix(es/minifier): Fix bugs ( #2955 )
...
swc_ecma_minifier:
- Improve the script for extracting inputs from next.js app.
- Ensure the name is removed on inlining.
- Respect `inline_prevented`.
2022-01-05 05:12:52 +09:00
Donny/강동윤
2b2f6955f2
refactor: Flatten ecmascript
( #2708 )
2021-11-10 19:00:54 +09:00