From 9a43bbbdb221163792d81d86495d6b436d84b356 Mon Sep 17 00:00:00 2001 From: Dan Reeves Date: Mon, 9 Jun 2025 16:27:15 +0100 Subject: [PATCH] Accept partial plugin options --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 5929933..d63f4bb 100644 --- a/src/index.ts +++ b/src/index.ts @@ -9,7 +9,7 @@ import type { RuleSetRule } from 'webpack'; type RuleOptions = Omit; -export const defineReactCompilerLoaderOption = (options: ReactCompilerLoaderOption) => options; +export const defineReactCompilerLoaderOption = (options: Partial) => options; export function withReactCompiler(pluginOptions?: ReactCompilerLoaderOption, ruleOptions: RuleOptions = {}) { return (nextConfig: NextConfig = {}) => {