Skip to content

Commit

Permalink
remove type assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
dnalborczyk committed Jan 23, 2022
1 parent 3ca594e commit 517cfb8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cli/run/waitForInput.ts
@@ -1,5 +1,5 @@
import { PluginContext } from 'rollup';
import { NormalizedInputOptions, Plugin } from '../../src/rollup/types';
import type { PluginContext } from 'rollup';
import type { NormalizedInputOptions, Plugin } from '../../src/rollup/types';
import { bold } from '../../src/utils/colors';
import { stderr } from '../logging';

Expand All @@ -8,9 +8,9 @@ export function waitForInputPlugin(): Plugin {
async buildStart(this: PluginContext, options: NormalizedInputOptions) {
const inputSpecifiers = Array.isArray(options.input)
? options.input
: Object.keys(options.input as { [entryAlias: string]: string });
: Object.keys(options.input);

let lastAwaitedSpecifier = null;
let lastAwaitedSpecifier: string | null = null;
checkSpecifiers: while (true) {
for (const specifier of inputSpecifiers) {
if ((await this.resolve(specifier)) === null) {
Expand Down

0 comments on commit 517cfb8

Please sign in to comment.