Commit graph

693 commits

Author SHA1 Message Date
Boshen
d407cd9675
feat(minifier): add allocator to minifier example 2023-05-22 12:23:04 +08:00
Boshen
009fc5f285
feat(minifier): minify Infinity 2023-05-21 22:01:47 +08:00
Boshen
5eeb2b0684
refactor(ast): remove ordered_float::NotNan<f64> from NumberLiteral
This is not easy to use
2023-05-21 21:46:45 +08:00
Boshen
60fc7334db
feat(hir): remove EmptyStatement from hir 2023-05-21 20:20:03 +08:00
Boshen
69b3aff858
feat(minifier): add --mangle option to example 2023-05-21 14:45:24 +08:00
Boshen
70a713126f
feat(minifier): setup minifier tests 2023-05-21 14:33:06 +08:00
Boshen
61f0483891
feat(minifier): move terser tests do its directory 2023-05-21 14:19:50 +08:00
Boshen
841804ef46
chore: add LICENSE from google/closure-compiler and evanw/esbuild 2023-05-21 12:13:32 +08:00
Boshen
a8641b9921
chore(parser): move inline tests to snapshot testing 2023-05-21 12:05:25 +08:00
Boshen
34d9726e9d
chore(git-blame-ignore-revs): ignore cargo fmt commit 2023-05-21 11:52:40 +08:00
Boshen
ad2835f11b
chore(rustfmt): run cargo fmt 2023-05-21 11:52:26 +08:00
Boshen
a611854cd4
chore(rustfmt): add a few formatting rules 2023-05-21 11:52:26 +08:00
Boshen
75c9ff6e0f
refactor(semantic2): use SoA for Scope (#367) 2023-05-21 00:12:58 +08:00
Boshen
fc7a374e7c
feat(coverage): add a directory for tests
closes #363
2023-05-20 23:02:30 +08:00
Boshen
40ae13cd64
feat(oxc_index): add non-zero idx (#366) 2023-05-20 22:49:51 +08:00
Boshen
df06c3a51a
feat(benchmark): add minifier to benchmark (#365) 2023-05-20 22:31:04 +08:00
Boshen
f8828db68c
feat(semantic2): slot based mangler (#364) 2023-05-20 19:00:57 +08:00
Wenzhe Wang
9678832f2b
fix: add parens for unary expression (#362) 2023-05-17 10:13:48 +08:00
Boshen
b4a546e3cf
chore(just): --deny warnings for cargo lint 2023-05-16 23:24:15 +08:00
Boshen
0607b1493f
feat(minifier): remove whitespace printing from minifier
This should make the minifier even faster.
Use the formatter for debugging instead.
2023-05-16 23:22:43 +08:00
Boshen
a0b09a3f27
refactor(ast): remove RestElement from BindingPattern 2023-05-16 22:25:52 +08:00
Boshen
e52ee63cbb
refactor(ast): clean up BindingProperty 2023-05-16 22:24:34 +08:00
Wenzhe Wang
bd56bb7abe
fix(minifier): break directive prologue (#360) 2023-05-16 21:35:58 +08:00
Boshen
af95b59a0e
feat(ast): split Property into ObjectProperty and BindingProperty (#361) 2023-05-16 15:51:50 +08:00
Boshen
231b987c0c
chore: add just watch command for overcoming cargo-watch being slow 2023-05-16 13:22:42 +08:00
Boshen
28876d6159
fix(README): fix typo for MVP
closes #359
2023-05-15 23:19:50 +08:00
Boshen
5be0d1b9fa
fix(hir): bring back ParenthesizedExpression as it caused too much chaos 2023-05-14 22:54:57 +08:00
Boshen
19b0c33427
perf(mangler): reduce time complexity when checking unresolved_references 2023-05-14 21:53:42 +08:00
Boshen
dc768ba8ad
feat(minifier): turn on mangle by default 2023-05-14 18:33:29 +08:00
Boshen
2914b439b3
feat(semantic2): add slot based mangler 2023-05-14 18:21:07 +08:00
Boshen
73b2a9a52b
feat(minifier): print decorators 2023-05-14 18:18:39 +08:00
Wenzhe Wang
e6737fdc48
fix(minifier): continue compress left expr (#356) 2023-05-14 13:03:34 +08:00
Boshen
9d0ac75f87
feat(semantic2): track symbol references 2023-05-14 11:44:37 +08:00
Boshen
d14329e74e
feat(semantic2): bind identifiers 2023-05-13 22:58:42 +08:00
Boshen
d0bc5ac023
refactor: separate semantic interface 2023-05-13 21:59:42 +08:00
Boshen
48398ea74c
feat(hir,minifier): wire up identifier reference for mangle 2023-05-13 21:59:42 +08:00
Boshen
ebfaa3b940
feat(hir,minifier): wire up mangling 2023-05-13 21:59:42 +08:00
Boshen
6db5f4e59b
fix(minifier): print SequenceExpression and ObjectExpression with parens 2023-05-13 21:57:02 +08:00
Boshen
6e8d342403
feat(minifier): add mangle option 2023-05-13 16:03:43 +08:00
Boshen
1f5fa8d6cb
feat: reimplement semantic builder (#354) 2023-05-13 15:20:00 +08:00
Boshen
2812591e4a
chore(rust): allow clippy::new_without_default 2023-05-13 15:07:00 +08:00
Wenzhe Wang
7b834d4bd9
fix(minifier): not merge different kinds of declarations. (#353) 2023-05-13 10:51:10 +08:00
Boshen
14720e7c69
refactor: move SourceType from oxc_ast to oxc_span (#351)
related #350
2023-05-12 23:16:14 +08:00
Boshen
9465b5f596
refactor(span): move base54 function to oxc_span 2023-05-12 17:02:27 +08:00
Boshen
af1cd1c520
refactor(span): make Atom a newtype 2023-05-12 14:25:27 +08:00
Boshen
ec092eab01
deps(rust): bump dependencies 2023-05-12 11:23:41 +08:00
Boshen
7f93e58f10
chore: remove all #[must_use] 2023-05-11 21:08:00 +08:00
Boshen
ed693d9941
chore(clippy): allow #[must_use] 2023-05-11 20:58:52 +08:00
Boshen
7496bb521f
fix(minifier): print if.consequent correctly (#349) 2023-05-11 11:00:49 +08:00
Boshen
25a359bdd7
fix(benchmark): fix AstLower benchmark taking up too much memory 2023-05-11 10:42:55 +08:00