Files
oxc-project__oxc/napi/playground/Cargo.toml
leaysgur c323187f37 refactor(formatter): Split oxc_formatter and oxc_formatter_core (#22611)
Split `oxc_formatter` into:

- `oxc_formatter(_js)`: JS/TS specific formatter, comment handling, sortImports, jsdoc, etc
- `oxc_formatter_core`: Language agnostic IR, printer, etc

The naming convention is different from Biome or Ruff (they do not have `_core`, and `_formatter` is equivalent to the core), but this is because in Oxc, items without `_js` are the default.

As a basic task, I have added `Context` as a generic to all relevant parts to ensure support for multiple languages.

There might still be other components that could be refactored into the core, but I would like to finish them as I implement support for other languages.

Also moved some shared utilities to the core in advance.
2026-05-29 00:49:49 +00:00

52 lines
1.1 KiB
TOML

[package]
name = "oxc_playground_napi"
version = "0.0.1"
authors.workspace = true
categories.workspace = true
edition.workspace = true
homepage.workspace = true
include = ["/src", "build.rs"]
keywords.workspace = true
license.workspace = true
publish = false
repository.workspace = true
rust-version.workspace = true
description.workspace = true
[lints]
workspace = true
[lib]
crate-type = ["cdylib", "lib"]
test = false
doctest = false
[dependencies]
oxc = { workspace = true, features = [
"ast_visit",
"codegen",
"minifier",
"mangler",
"semantic",
"serialize",
"transformer",
"isolated_declarations",
"regular_expression",
"cfg",
] }
oxc_compat = { workspace = true }
oxc_formatter = { workspace = true }
oxc_formatter_core = { workspace = true }
oxc_linter = { workspace = true }
oxc_napi = { workspace = true }
oxc_transformer_plugins = { workspace = true }
napi = { workspace = true, features = ["async"] }
napi-derive = { workspace = true }
rustc-hash = { workspace = true }
serde = { workspace = true }
serde_json = { workspace = true }
[build-dependencies]
napi-build = { workspace = true }