oxc/crates
overlookmotel 3b1e63ecab perf(transformer/jsx): no string comparisons generating pragma expression (#7620)
#7553 introduced support for some unusual JSX pragmas e.g. `this.foo` and `import.meta.foo`. We want to support these to pass tests, but they're very unlikely to be used in practice.

Identify these strange patterns when parsing the pragma (which happens only once per file), and encode them as an enum. The removes expensive string comparisons from `Pragma::create_expression` (which is called for every JSX element), and keeps the path for common cases fast.
2024-12-04 02:47:28 +00:00
..
oxc feat(oxc): remove oxc_napi crate (#7634) 2024-12-04 10:07:32 +08:00
oxc_allocator chore: Rust v1.83.0 changes (#7535) 2024-11-29 11:59:45 +08:00
oxc_ast chore(deps): update dependency rust to v1.83.0 (#7537) 2024-11-29 07:25:36 +00:00
oxc_ast_macros release(crates): v0.38.0 (#7490) 2024-11-26 14:38:47 +08:00
oxc_cfg chore: Rust v1.83.0 changes (#7535) 2024-11-29 11:59:45 +08:00
oxc_codegen chore: Rust v1.83.0 changes (#7535) 2024-11-29 11:59:45 +08:00
oxc_data_structures feat(data_structures): add SparseStack::last_mut method (#7528) 2024-11-28 16:39:34 +00:00
oxc_diagnostics release(crates): v0.38.0 (#7490) 2024-11-26 14:38:47 +08:00
oxc_ecmascript test(ecmascript): move tests to oxc_minifier due to cyclic dependency with oxc_parser (#7542) 2024-11-29 09:18:45 +00:00
oxc_estree chore: Rust v1.83.0 changes (#7535) 2024-11-29 11:59:45 +08:00
oxc_isolated_declarations chore: Rust v1.83.0 changes (#7535) 2024-11-29 11:59:45 +08:00
oxc_language_server refactor(linter): add capability of adding semantic data to module record (#7561) 2024-12-01 08:14:43 +00:00
oxc_linter fix(linter): move no-unused-expressions from TS to eslint (#7624) 2024-12-04 02:26:47 +00:00
oxc_macros feat(linter): allow lint rules with the same name (#7496) 2024-11-27 04:25:05 +00:00
oxc_mangler release(crates): v0.38.0 (#7490) 2024-11-26 14:38:47 +08:00
oxc_minifier test(ecmascript): move tests to oxc_minifier due to cyclic dependency with oxc_parser (#7542) 2024-11-29 09:18:45 +00:00
oxc_parser feat(syntax): add statement span to ImportEntry and ExportEntry (#7583) 2024-12-02 14:20:30 +00:00
oxc_prettier refactor(prettier): Unified method of Doc generation (#7600) 2024-12-03 17:27:55 +08:00
oxc_regular_expression chore(deps): update dependency rust to v1.83.0 (#7537) 2024-11-29 07:25:36 +00:00
oxc_semantic feat(semantic): add SymbolTable::add_resolved_reference method (#7608) 2024-12-03 12:43:20 +00:00
oxc_span fix(span): fix clippy warning (#7591) 2024-12-03 02:18:57 +00:00
oxc_syntax feat(napi/parser): return esm info (#7602) 2024-12-03 11:21:54 +00:00
oxc_transformer perf(transformer/jsx): no string comparisons generating pragma expression (#7620) 2024-12-04 02:47:28 +00:00
oxc_traverse chore(deps): remove memoffset dependency (#7573) 2024-12-01 23:39:27 +00:00
oxc_wasm refactor(linter): add capability of adding semantic data to module record (#7561) 2024-12-01 08:14:43 +00:00