From 539b5010d16e1c9fd6ccb2e10965987322b11d7e Mon Sep 17 00:00:00 2001 From: Guilherme Gazzo Date: Sat, 26 Oct 2024 16:27:08 -0300 Subject: [PATCH] .. --- packages/peggy-loader/src/index.ts | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/packages/peggy-loader/src/index.ts b/packages/peggy-loader/src/index.ts index 4d805d2be14d..5dcf3054243d 100644 --- a/packages/peggy-loader/src/index.ts +++ b/packages/peggy-loader/src/index.ts @@ -9,21 +9,20 @@ import type { import peggy from 'peggy'; import type { LoaderContext } from 'webpack'; -type Options = - | BuildOptionsBase & - ( - | Omit< - OutputFormatAmdCommonjsEs<'source'>, - keyof SourceOptionsBase<'source'> - > - | Omit, keyof SourceOptionsBase<'source'>> - | Omit, keyof SourceOptionsBase<'source'>> - | Omit, keyof SourceOptionsBase<'source'>> - ); +type Options = BuildOptionsBase & + ( + | Omit< + OutputFormatAmdCommonjsEs<'source'>, + keyof SourceOptionsBase<'source'> + > + | Omit, keyof SourceOptionsBase<'source'>> + | Omit, keyof SourceOptionsBase<'source'>> + | Omit, keyof SourceOptionsBase<'source'>> + ); function peggyLoader( this: LoaderContext, - grammarContent: string + grammarContent: string, ): string { const options: Options = { format: 'commonjs',