Skip to content

Commit

Permalink
Added missing alt-shared to ignore modules (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
JustCup authored and LeonMrBonnie committed Feb 20, 2022
1 parent 7627968 commit 071e494
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion executable/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion module/src/runtime.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ void JSBytecodeRuntime::ProcessClientFile(alt::IResource* resource, alt::IPackag
Logger compilerLogger;
BytecodeCompiler::Compiler compiler(isolate, &compilerPackage, &compilerLogger);

static std::vector<std::string> ignoredModules = { "alt", "alt-client", "natives", "alt-worker" };
static std::vector<std::string> ignoredModules = { "alt", "alt-client", "natives", "alt-worker", "alt-shared" };
compiler.SetIgnoredModules(ignoredModules);

// Compile client main file
Expand Down

0 comments on commit 071e494

Please sign in to comment.