Skip to content

Commit

Permalink
Remove useless await and imports
Browse files Browse the repository at this point in the history
  • Loading branch information
Septh committed Aug 27, 2024
1 parent e1dd916 commit 0ecd976
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/_common.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import path from 'node:path'
import { fileURLToPath } from 'node:url'
import type { Plugin, RollupError, ObjectHook, PluginContextMeta, PluginHooks, PluginContext, NormalizedInputOptions } from 'rollup'
import type { Plugin, RollupError, PluginContextMeta, NormalizedInputOptions } from 'rollup'
import { nodeExternals, type ExternalsOptions } from '../source/index.ts'

const __dirname = path.dirname(fileURLToPath(import.meta.url))
Expand Down Expand Up @@ -54,7 +54,7 @@ class MockPluginContext {
}

export async function initPlugin(options: ExternalsOptions = {}) {
const plugin = await nodeExternals(options)
const plugin = nodeExternals(options)
const context = new MockPluginContext(plugin)
await context.buildStart()
return context
Expand Down

0 comments on commit 0ecd976

Please sign in to comment.