From 071e494ddb51e8e9700536a85fac20c52a3c0964 Mon Sep 17 00:00:00 2001 From: Egor <32245758+JustCup@users.noreply.github.com> Date: Sun, 20 Feb 2022 18:11:31 +0300 Subject: [PATCH] Added missing alt-shared to ignore modules (#3) --- executable/src/main.cpp | 2 +- module/src/runtime.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/executable/src/main.cpp b/executable/src/main.cpp index 5434543..635880a 100644 --- a/executable/src/main.cpp +++ b/executable/src/main.cpp @@ -107,7 +107,7 @@ int main(int argc, char* argv[]) // Set up the compiler BytecodeCompiler::Compiler compiler(isolate, &package, &Logger::Instance()); - compiler.SetIgnoredModules({ "alt", "alt-client", "natives", "alt-worker" }); + compiler.SetIgnoredModules({ "alt", "alt-client", "natives", "alt-worker", "alt-shared" }); // Compile the main file if(!compiler.CompileModule(clientMainPath.string())) return 1; diff --git a/module/src/runtime.cpp b/module/src/runtime.cpp index 6647494..8f98d31 100644 --- a/module/src/runtime.cpp +++ b/module/src/runtime.cpp @@ -27,7 +27,7 @@ void JSBytecodeRuntime::ProcessClientFile(alt::IResource* resource, alt::IPackag Logger compilerLogger; BytecodeCompiler::Compiler compiler(isolate, &compilerPackage, &compilerLogger); - static std::vector ignoredModules = { "alt", "alt-client", "natives", "alt-worker" }; + static std::vector ignoredModules = { "alt", "alt-client", "natives", "alt-worker", "alt-shared" }; compiler.SetIgnoredModules(ignoredModules); // Compile client main file