Skip to content

Commit 1cde6f6

Browse files
committed
types: fix commonjs options type import
1 parent 02475fa commit 1cde6f6

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/types/config.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { RollupCommonJSOptions } from "@rollup/plugin-commonjs";
1+
import type commonjs from "@rollup/plugin-commonjs";
22
import type {
33
C12InputConfig,
44
ConfigWatcher,
@@ -38,6 +38,10 @@ import type { OXCOptions } from "./rollup.ts";
3838
import type { RollupConfig } from "./rollup.ts";
3939
import type { NitroRouteConfig, NitroRouteRules } from "./route-rules.ts";
4040

41+
type RollupCommonJSOptions = NonNullable<
42+
Parameters<typeof commonjs.default>[0]
43+
>;
44+
4145
/**
4246
* Nitro normalized options (nitro.options)
4347
*/

0 commit comments

Comments
 (0)