@@ -31,12 +31,12 @@ export type DtsMap = Map<string, TsModule>
3131export function createGeneratePlugin ( {
3232 tsconfig,
3333 compilerOptions,
34- isolatedDeclaration ,
34+ isolatedDeclarations ,
3535 resolve = false ,
3636 emitDtsOnly = false ,
3737} : Pick <
3838 Options ,
39- | 'isolatedDeclaration '
39+ | 'isolatedDeclarations '
4040 | 'resolve'
4141 | 'emitDtsOnly'
4242 | 'tsconfig'
@@ -60,14 +60,14 @@ export function createGeneratePlugin({
6060 }
6161 }
6262
63- if ( isolatedDeclaration == null ) {
64- isolatedDeclaration = ! ! compilerOptions ?. isolatedDeclarations
63+ if ( isolatedDeclarations == null ) {
64+ isolatedDeclarations = ! ! compilerOptions ?. isolatedDeclarations
6565 }
66- if ( isolatedDeclaration === true ) {
67- isolatedDeclaration = { }
66+ if ( isolatedDeclarations === true ) {
67+ isolatedDeclarations = { }
6868 }
69- if ( isolatedDeclaration && isolatedDeclaration . stripInternal == null ) {
70- isolatedDeclaration . stripInternal = ! ! compilerOptions ?. stripInternal
69+ if ( isolatedDeclarations && isolatedDeclarations . stripInternal == null ) {
70+ isolatedDeclarations . stripInternal = ! ! compilerOptions ?. stripInternal
7171 }
7272 }
7373
@@ -93,7 +93,7 @@ export function createGeneratePlugin({
9393 tsconfig : tsconfig ? ( tsconfig as string ) : undefined ,
9494 } )
9595
96- if ( ! isolatedDeclaration ) {
96+ if ( ! isolatedDeclarations ) {
9797 initTs ( )
9898 }
9999
@@ -245,11 +245,11 @@ export function createGeneratePlugin({
245245 const { code, id, isEntry } = dtsMap . get ( dtsId ) !
246246 let dtsCode : string | undefined
247247
248- if ( isolatedDeclaration ) {
248+ if ( isolatedDeclarations ) {
249249 const result = oxcIsolatedDeclaration (
250250 id ,
251251 code ,
252- isolatedDeclaration === true ? { } : isolatedDeclaration ,
252+ isolatedDeclarations === true ? { } : isolatedDeclarations ,
253253 )
254254 if ( result . errors . length ) {
255255 const [ error ] = result . errors
0 commit comments