File tree Expand file tree Collapse file tree 4 files changed +60
-1
lines changed
tests/fixture/issues-7xxx/7240 Expand file tree Collapse file tree 4 files changed +60
-1
lines changed Original file line number Diff line number Diff line change @@ -577,6 +577,14 @@ impl Options {
577577 _ => TsImportExportAssignConfig :: Classic ,
578578 } ;
579579
580+ let charset = cfg. jsc . output . charset . or_else ( || {
581+ if js_minify. as_ref ( ) ?. format . ascii_only {
582+ Some ( OutputCharset :: Ascii )
583+ } else {
584+ None
585+ }
586+ } ) ;
587+
580588 let pass = PassBuilder :: new (
581589 cm,
582590 handler,
@@ -782,7 +790,7 @@ impl Options {
782790 comments : comments. cloned ( ) ,
783791 preserve_comments,
784792 emit_source_map_columns : cfg. emit_source_map_columns . into_bool ( ) ,
785- output : cfg . jsc . output ,
793+ output : JscOutputConfig { charset } ,
786794 } )
787795 }
788796}
Original file line number Diff line number Diff line change 1+ {
2+ "jsc" : {
3+ "parser" : {
4+ "syntax" : " ecmascript" ,
5+ "jsx" : false
6+ },
7+ "target" : " es5" ,
8+ "loose" : true ,
9+ "minify" : {
10+ "compress" : {
11+ "dead_code" : true ,
12+ "drop_console" : true ,
13+ "drop_debugger" : true ,
14+ "passes" : 3
15+ },
16+ "format" : {
17+ "asciiOnly" : true
18+ },
19+ "mangle" : {
20+ "toplevel" : false ,
21+ "keep_classnames" : false ,
22+ "keep_fnames" : false ,
23+ "keep_private_props" : false ,
24+ "ie8" : false ,
25+ "safari10" : false
26+ }
27+ }
28+ },
29+ "module" : {
30+ "type" : " commonjs"
31+ },
32+ "isModule" : true
33+ }
Original file line number Diff line number Diff line change 1+ export default {
2+ \u3131 : '\u11B0' ,
3+ '\u3141' : '\u11B1' ,
4+ [ '\u3142' ] : '\u11B2' ,
5+ }
Original file line number Diff line number Diff line change 1+ "use strict" ;
2+ Object . defineProperty ( exports , "__esModule" , {
3+ value : ! 0
4+ } ) , Object . defineProperty ( exports , "default" , {
5+ enumerable : ! 0 ,
6+ get : function ( ) {
7+ return _default ;
8+ }
9+ } ) ;
10+ var _obj , _default = ( ( _obj = {
11+ \u3131 : "\u11B0" ,
12+ \u3141 : "\u11B1"
13+ } ) [ "\u3142" ] = "\u11B2" , _obj ) ;
You can’t perform that action at this time.
0 commit comments