Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
[ghstack-poisoned]
  • Loading branch information
poteto committed Jun 20, 2024
2 parents 8f9a565 + f8a7626 commit 53436c3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions compiler/apps/playground/components/Editor/Output.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ async function tabify(source: string, compilerOutput: CompilerOutput) {
passName,
<TextTabContent
output={text}
diff={lastPassOutput ?? null}
diff={passName !== "HIR" ? lastPassOutput : null}
showInfoPanel={true}
></TextTabContent>
);
Expand Down Expand Up @@ -195,7 +195,7 @@ function Output({ store, compilerOutput }: Props) {
if (result.kind === "hir" || result.kind === "reactive") {
currResult += `function ${result.fnName}\n\n${result.value}`;
}
if (currResult !== lastResult) {
if (passName !== "HIR" && currResult !== lastResult) {
changedPasses.add(passName);
}
lastResult = currResult;
Expand Down
8 changes: 5 additions & 3 deletions scripts/rollup/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,11 @@ function parseRequestedNames(names, toCase) {
return result;
}

const argvType = Array.isArray(argv.type) ? argv.type : [argv.type];
const requestedBundleTypes = argv.type
? parseRequestedNames([argv.type], 'uppercase')
? parseRequestedNames(argvType, 'uppercase')
: [];

const requestedBundleNames = parseRequestedNames(argv._, 'lowercase');
const forcePrettyOutput = argv.pretty;
const isWatchMode = argv.watch;
Expand Down Expand Up @@ -528,8 +530,8 @@ function shouldSkipBundle(bundle, bundleType) {
return true;
}
if (requestedBundleTypes.length > 0) {
const isAskingForDifferentType = requestedBundleTypes.every(
requestedType => bundleType.indexOf(requestedType) === -1
const isAskingForDifferentType = requestedBundleTypes.some(
requestedType => !bundleType.includes(requestedType)
);
if (isAskingForDifferentType) {
return true;
Expand Down

0 comments on commit 53436c3

Please sign in to comment.