plugin fix

This commit is contained in:
Brahim Hadriche committed 2026-04-25 10:33:50 -04:00
1 parent a75c42f4ac
commit 10bcf9f1f4
5 files changed
+13 -7

No files matched your search

@@ -1,5 +1,5 @@
' Auto-generated file - do not modify manually
' md5:252058d604a761c9fd33d800fce1b72b
' md5:1dc03998a561a4b1270454e10a4d7ead
import "pkg:/source/Protobuf/BinaryReader.bs"
import "pkg:/source/Protobuf/BinaryWriter.bs"
+6 -4
View File
@@ -1,8 +1,10 @@
{
"compilerOptions": {
"composite": true,
"module": "ESNext",
"moduleResolution": "Node"
"module": "NodeNext",
"moduleResolution": "NodeNext"
},
"include": ["vite.config.ts"]
}
"include": [
"vite.config.ts"
]
}
+1 -1
View File
@@ -260,7 +260,7 @@ end function`;
bsfmtPath: bsfmtPath
});
return new Formatter(options);
return new Formatter(options ?? undefined);
}
getCurrentFileHash() {
+3
View File
@@ -44,6 +44,9 @@ export class ValidationPlugin implements CompilerPlugin {
this.validation.forEach((validation) => {
const regex = validation.regexObject;
if (!regex) {
return;
}
const fileContents = file.fileContents;
let match: RegExpExecArray | null;
+2 -1
View File
@@ -1,7 +1,8 @@
{
"compilerOptions": {
"target": "ES6",
"moduleResolution": "Node",
"module": "NodeNext",
"moduleResolution": "NodeNext",
"esModuleInterop": true
}
}