fix: typescript transpiler misbehaving
This commit is contained in:
@@ -81,7 +81,7 @@ public class Reading {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static InputStream resourceToStream(String name) {
|
public static InputStream resourceToStream(String name) {
|
||||||
return Reading.class.getResourceAsStream("/" + name);
|
return Reading.class.getResourceAsStream("/" + name.replaceAll("//", "/"));
|
||||||
}
|
}
|
||||||
public static String resourceToString(String name) {
|
public static String resourceToString(String name) {
|
||||||
return streamToString(resourceToStream(name));
|
return streamToString(resourceToStream(name));
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ export default function typescript(next: Compiler): Compiler {
|
|||||||
module: ModuleKind.Preserve,
|
module: ModuleKind.Preserve,
|
||||||
|
|
||||||
allowImportingTsExtensions: true,
|
allowImportingTsExtensions: true,
|
||||||
verbatimModuleSyntax: true,
|
verbatimModuleSyntax: false,
|
||||||
|
|
||||||
strict: false,
|
strict: false,
|
||||||
skipLibCheck: true,
|
skipLibCheck: true,
|
||||||
|
|||||||
Reference in New Issue
Block a user