Skip to content

Commit 53436c3

Browse files
committed
Update
[ghstack-poisoned]
2 parents 8f9a565 + f8a7626 commit 53436c3

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

compiler/apps/playground/components/Editor/Output.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ async function tabify(source: string, compilerOutput: CompilerOutput) {
104104
passName,
105105
<TextTabContent
106106
output={text}
107-
diff={lastPassOutput ?? null}
107+
diff={passName !== "HIR" ? lastPassOutput : null}
108108
showInfoPanel={true}
109109
></TextTabContent>
110110
);
@@ -195,7 +195,7 @@ function Output({ store, compilerOutput }: Props) {
195195
if (result.kind === "hir" || result.kind === "reactive") {
196196
currResult += `function ${result.fnName}\n\n${result.value}`;
197197
}
198-
if (currResult !== lastResult) {
198+
if (passName !== "HIR" && currResult !== lastResult) {
199199
changedPasses.add(passName);
200200
}
201201
lastResult = currResult;

scripts/rollup/build.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,11 @@ function parseRequestedNames(names, toCase) {
8585
return result;
8686
}
8787

88+
const argvType = Array.isArray(argv.type) ? argv.type : [argv.type];
8889
const requestedBundleTypes = argv.type
89-
? parseRequestedNames([argv.type], 'uppercase')
90+
? parseRequestedNames(argvType, 'uppercase')
9091
: [];
92+
9193
const requestedBundleNames = parseRequestedNames(argv._, 'lowercase');
9294
const forcePrettyOutput = argv.pretty;
9395
const isWatchMode = argv.watch;
@@ -528,8 +530,8 @@ function shouldSkipBundle(bundle, bundleType) {
528530
return true;
529531
}
530532
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)
533535
);
534536
if (isAskingForDifferentType) {
535537
return true;

0 commit comments

Comments
 (0)