Skip to content

Commit 905795e

Browse files
committed
fix: replace \r\n with \n
1 parent 76e6ca6 commit 905795e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export const unpluginFactory: UnpluginFactory<YamlOptions | undefined> = (option
4949

5050
// eslint-disable-next-line no-console
5151
console.log("PATH TO READ", path);
52-
const content = await readFile(path!, "utf-8");
52+
const content = (await readFile(path, "utf-8")).replace(/\r\n/g, "\n");
5353

5454
return {
5555
code: `export default ${JSON.stringify(content)}`,

0 commit comments

Comments
 (0)