mirror of
https://github.com/oxc-project/oxc.git
synced 2026-11-04 10:29:58 +00:00
docs(codegen): format table in doc comment (#27839)
Docs-only change. Format a table in doc comment, to make it more readable.
This commit is contained in:
1 parent
3de03c1bed
commit
29caafd7bc
1 file changed
+6
-6
@@ -18,12 +18,12 @@
|
||||
//!
|
||||
//! The four positions we currently preserve, all `minify`-only:
|
||||
//!
|
||||
//! | Helper | Pattern |
|
||||
//! | --------------------------------- | ------------------------------------------------------ |
|
||||
//! | [`try_print_require_call`] | `require("…")` |
|
||||
//! | [`try_print_define_property_call`] | `Object.defineProperty(_, "name", …)` / `Reflect.…` |
|
||||
//! | [`try_print_exports_computed_target`] | `exports[STR] = …` / `module.exports[STR] = …` |
|
||||
//! | [`try_print_equality_string`] | `key === "default"` / `key === "__esModule"` (and `==`/`!=`/`!==`) |
|
||||
//! | Helper | Pattern |
|
||||
//! | ------------------------------------- | ---------------------------------------------------------------------- |
|
||||
//! | [`try_print_require_call`] | `require("...")` |
|
||||
//! | [`try_print_define_property_call`] | `Object.defineProperty(_, "name", ...)` / `Reflect....` |
|
||||
//! | [`try_print_exports_computed_target`] | `exports[STR] = ...` / `module.exports[STR] = ...` |
|
||||
//! | [`try_print_equality_string`] | `key === "default"` / `key === "__esModule"` (and `==` / `!=` / `!==`) |
|
||||
//!
|
||||
//! Each helper returns `true` if it printed the construct, so the caller can
|
||||
//! fall back to the default print path when the helper declines.
|
||||
|
||||
Reference in new issue
Block a user