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