Skip to content

Commit

Permalink
set ascii_only default value is true
Browse files Browse the repository at this point in the history
  • Loading branch information
ahaoboy committed Dec 27, 2024
1 parent 38ecc84 commit 5c7624f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions bindings/binding_core_wasm/src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ type ToSnakeCaseProperties<T> = {
export interface JsFormatOptions {
/**
* Currently noop.
* @default false
* @default true
* @alias ascii_only
*/
asciiOnly?: boolean
Expand Down Expand Up @@ -1069,7 +1069,7 @@ export interface BaseModuleConfig {
* Emits `cjs-module-lexer` annotation
* `cjs-module-lexer` is used in Node.js core for detecting the named exports available when importing a CJS module into ESM.
* swc will emit `cjs-module-lexer` detectable annotation with this option enabled.
*
*
* Defaults to `true` if import_interop is Node, else `false`
*/
exportInteropAnnotation?: boolean;
Expand Down
4 changes: 2 additions & 2 deletions bindings/binding_minifier_wasm/src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ type ToSnakeCaseProperties<T> = {
export interface JsFormatOptions {
/**
* Currently noop.
* @default false
* @default true
* @alias ascii_only
*/
asciiOnly?: boolean
Expand Down Expand Up @@ -1070,7 +1070,7 @@ export interface BaseModuleConfig {
* Emits `cjs-module-lexer` annotation
* `cjs-module-lexer` is used in Node.js core for detecting the named exports available when importing a CJS module into ESM.
* swc will emit `cjs-module-lexer` detectable annotation with this option enabled.
*
*
* Defaults to `true` if import_interop is Node, else `false`
*/
exportInteropAnnotation?: boolean;
Expand Down
2 changes: 1 addition & 1 deletion crates/swc_ecma_codegen/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ impl Default for Config {
Self {
target: EsVersion::latest(),
minify: false,
ascii_only: false,
ascii_only: true,
omit_last_semi: false,
emit_assert_for_import_attributes: false,
inline_script: false,
Expand Down

0 comments on commit 5c7624f

Please sign in to comment.