Skip to content

Commit

Permalink
chore: fix type issue
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Dec 12, 2022
1 parent 6a735b1 commit a60e4bd
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/rollup/config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { pathToFileURL } from "node:url";
import { dirname, join, normalize, relative, resolve } from "pathe";
import type { InputOptions, OutputOptions } from "rollup";
import type { InputOptions, OutputOptions, Plugin } from "rollup";
import { defu } from "defu";
import { terser } from "rollup-plugin-terser";
import type { RollupWasmOptions } from "@rollup/plugin-wasm";
Expand Down Expand Up @@ -133,7 +133,9 @@ export const getRollupConfig = (nitro: Nitro) => {
}

if (nitro.options.imports) {
rollupConfig.plugins.push(unimportPlugin.rollup(nitro.options.imports));
rollupConfig.plugins.push(
unimportPlugin.rollup(nitro.options.imports) as Plugin
);
}

// Raw asset loader
Expand Down

0 comments on commit a60e4bd

Please sign in to comment.