mirror of
https://github.com/danbulant/oxc
synced 2026-05-24 12:21:58 +00:00
Make `ScopeId` a type with a niche, like `SymbolId` and `ReferenceId`. This makes `Option<ScopeId>` 4 bytes instead of 8, and shrinks various AST types e.g. `ArrowFunctionExpression` by 8 bytes, and halves the size of the `Vec` in `ScopeTree::parent_ids`.
The snapshot change on `prefer-hooks-in-order` lint rule appears incidental - it doesn't alter what errors are reported, only the order they're reported in. This appears to be because it changes the order of keys in a hashmap keyed by `ScopeId` that [the rule uses](a49f4915de/crates/oxc_linter/src/rules/jest/prefer_hooks_in_order.rs (L143)).
31 lines
826 B
TOML
31 lines
826 B
TOML
[package]
|
|
name = "oxc_wasm"
|
|
version = "0.0.0"
|
|
publish = false
|
|
authors.workspace = true
|
|
edition.workspace = true
|
|
keywords.workspace = true
|
|
license.workspace = true
|
|
rust-version.workspace = true
|
|
categories.workspace = true
|
|
include = ["/src"]
|
|
|
|
[lints]
|
|
workspace = true
|
|
|
|
[lib]
|
|
crate-type = ["cdylib", "rlib"]
|
|
test = false
|
|
doctest = false
|
|
|
|
[dependencies]
|
|
oxc = { workspace = true, features = ["codegen", "minifier", "semantic", "serialize", "transformer", "wasm"] }
|
|
|
|
oxc_index = { workspace = true }
|
|
oxc_linter = { workspace = true }
|
|
oxc_prettier = { workspace = true }
|
|
serde = { workspace = true }
|
|
|
|
wasm-bindgen = { workspace = true }
|
|
serde-wasm-bindgen = { workspace = true }
|
|
tsify = { workspace = true }
|