File tree Expand file tree Collapse file tree 2 files changed +5
-10
lines changed Expand file tree Collapse file tree 2 files changed +5
-10
lines changed Original file line number Diff line number Diff line change @@ -152,9 +152,9 @@ import jsx from 'acorn-jsx';
152152import  typescript  from  ' rollup-plugin-typescript'  ;
153153
154154export  default  {
155-      //  … other options …
156-      acornInjectPlugins:  [  jsx ()  ],
157-      plugins:  [  typescript ({jsx:  ' preserve' })  ]
155+   //  … other options …
156+   acornInjectPlugins:  [jsx ()],
157+   plugins:  [typescript ({  jsx:  ' preserve'  }) ]
158158};
159159``` 
160160
Original file line number Diff line number Diff line change @@ -32,9 +32,7 @@ export default function typescript(options = {}) {
3232
3333  // Load options from `tsconfig.json` unless explicitly asked not to. 
3434  const  tsConfig  = 
35-     opts . tsconfig  ===  false 
36-       ? {  compilerOptions : { }  } 
37-       : readTsConfig ( tsRuntime ,  opts . tsconfig ) ; 
35+     opts . tsconfig  ===  false  ? {  compilerOptions : { }  }  : readTsConfig ( tsRuntime ,  opts . tsconfig ) ; 
3836
3937  delete  opts . tsconfig ; 
4038
@@ -138,10 +136,7 @@ export default function typescript(options = {}) {
138136      let  fatalError  =  false ; 
139137
140138      diagnostics . forEach ( ( diagnostic )  =>  { 
141-         const  message  =  tsRuntime . flattenDiagnosticMessageText ( 
142-           diagnostic . messageText , 
143-           '\n' 
144-         ) ; 
139+         const  message  =  tsRuntime . flattenDiagnosticMessageText ( diagnostic . messageText ,  '\n' ) ; 
145140
146141        if  ( diagnostic . file )  { 
147142          const  {  line,  character }  =  diagnostic . file . getLineAndCharacterOfPosition ( 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments