Boshen
21e2df57a0
refactor(minifier): replace VisitMut with Traverse for inject and define plugins ( #5705 )
...
closes #5704
2024-09-11 16:13:10 +00:00
Boshen
b8f8dd6612
fix(minifier/replace_global_defines): do not replace shadowed identifiers ( #5691 )
2024-09-11 07:17:17 +00:00
Boshen
b06052501a
refactor(semantic)!: remove source_type argument from SemanticBuilder::new ( #5553 )
...
Realized we can get the source type from the AST.
The next PR will introduce `unambiguous` to `SourceType` and directly set `Program::source_type` to either `script` or `module`.
2024-09-06 16:40:10 +00:00
IWANABETHATGUY
2b21be31ff
feat(oxc_minifier): define plugin with postfix wildcard ( #4979 )
...
1. support `import.meta.env.*` in `ReplaceGlobalDefine`
2024-08-21 13:27:09 +00:00
Boshen
ce4d4698b4
feat(codegen)!: remove const generic MINIFY ( #5001 )
...
This is a premature optimization, makes the code complicated, and bloats the final binary size.
The minify option is moved to `CodegenOptions`
2024-08-20 08:13:27 +00:00
Boshen
c51929558d
feat(minifier): add InjectGlobalVariables plugin (@rollup/plugin-inject) ( #4759 )
2024-08-10 01:12:31 +00:00
Boshen
17602db6de
refactor(minifier): move tests and files around
2024-08-07 20:01:55 +08:00