File tree 2 files changed +4
-4
lines changed
src/lib/converter/plugins
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,8 @@ title: Changelog
6
6
7
7
### Bug Fixes
8
8
9
- - ` --watch ` can now infer entry points from ` package.json ` as supported in non-watch mode, #2899 /
9
+ - ` --watch ` can now infer entry points from ` package.json ` as supported in non-watch mode, #2899 .
10
+ - ` @include ` with regions now works on files with CRLF line endings, #2902 .
10
11
11
12
## v0.28.0 (2025-03-15)
12
13
Original file line number Diff line number Diff line change 1
1
import path from "path" ;
2
- import fs from "fs" ;
3
2
4
3
import { ConverterComponent } from "../components.js" ;
5
4
import { ConverterEvents } from "../converter-events.js" ;
6
5
import type { CommentDisplayPart , Reflection } from "../../models/index.js" ;
7
6
import { MinimalSourceFile } from "#utils" ;
8
7
import type { Converter } from "../converter.js" ;
9
- import { isFile } from "../../utils/fs.js" ;
8
+ import { isFile , readFile } from "../../utils/fs.js" ;
10
9
import { dedent , escapeRegExp , i18n } from "#utils" ;
11
10
import { normalizePath } from "#node-utils" ;
12
11
@@ -78,7 +77,7 @@ export class IncludePlugin extends ConverterComponent {
78
77
) ,
79
78
) ;
80
79
} else if ( isFile ( file ) ) {
81
- const text = fs . readFileSync ( file , "utf-8 " ) ;
80
+ const text = readFile ( file ) . replaceAll ( "\r\n" , "\n " ) ;
82
81
const ext = path . extname ( file ) . substring ( 1 ) ;
83
82
84
83
const includedText = regionTarget
You can’t perform that action at this time.
0 commit comments