Skip to content

Commit 0ecd976

Browse files
committed
Remove useless await and imports
1 parent e1dd916 commit 0ecd976

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/_common.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import path from 'node:path'
22
import { fileURLToPath } from 'node:url'
3-
import type { Plugin, RollupError, ObjectHook, PluginContextMeta, PluginHooks, PluginContext, NormalizedInputOptions } from 'rollup'
3+
import type { Plugin, RollupError, PluginContextMeta, NormalizedInputOptions } from 'rollup'
44
import { nodeExternals, type ExternalsOptions } from '../source/index.ts'
55

66
const __dirname = path.dirname(fileURLToPath(import.meta.url))
@@ -54,7 +54,7 @@ class MockPluginContext {
5454
}
5555

5656
export async function initPlugin(options: ExternalsOptions = {}) {
57-
const plugin = await nodeExternals(options)
57+
const plugin = nodeExternals(options)
5858
const context = new MockPluginContext(plugin)
5959
await context.buildStart()
6060
return context

0 commit comments

Comments
 (0)