File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed
compiler/apps/playground/components/Editor Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -104,7 +104,7 @@ async function tabify(source: string, compilerOutput: CompilerOutput) {
104
104
passName ,
105
105
< TextTabContent
106
106
output = { text }
107
- diff = { lastPassOutput ?? null }
107
+ diff = { passName !== "HIR" ? lastPassOutput : null }
108
108
showInfoPanel = { true }
109
109
> </ TextTabContent >
110
110
) ;
@@ -195,7 +195,7 @@ function Output({ store, compilerOutput }: Props) {
195
195
if ( result . kind === "hir" || result . kind === "reactive" ) {
196
196
currResult += `function ${ result . fnName } \n\n${ result . value } ` ;
197
197
}
198
- if ( currResult !== lastResult ) {
198
+ if ( passName !== "HIR" && currResult !== lastResult ) {
199
199
changedPasses . add ( passName ) ;
200
200
}
201
201
lastResult = currResult ;
Original file line number Diff line number Diff line change @@ -85,9 +85,11 @@ function parseRequestedNames(names, toCase) {
85
85
return result ;
86
86
}
87
87
88
+ const argvType = Array . isArray ( argv . type ) ? argv . type : [ argv . type ] ;
88
89
const requestedBundleTypes = argv . type
89
- ? parseRequestedNames ( [ argv . type ] , 'uppercase' )
90
+ ? parseRequestedNames ( argvType , 'uppercase' )
90
91
: [ ] ;
92
+
91
93
const requestedBundleNames = parseRequestedNames ( argv . _ , 'lowercase' ) ;
92
94
const forcePrettyOutput = argv . pretty ;
93
95
const isWatchMode = argv . watch ;
@@ -528,8 +530,8 @@ function shouldSkipBundle(bundle, bundleType) {
528
530
return true ;
529
531
}
530
532
if ( requestedBundleTypes . length > 0 ) {
531
- const isAskingForDifferentType = requestedBundleTypes . every (
532
- requestedType => bundleType . indexOf ( requestedType ) === - 1
533
+ const isAskingForDifferentType = requestedBundleTypes . some (
534
+ requestedType => ! bundleType . includes ( requestedType )
533
535
) ;
534
536
if ( isAskingForDifferentType ) {
535
537
return true ;
You can’t perform that action at this time.
0 commit comments