New beta seems to solve all of these problems.
I do have one more thing that is for sure specific to our setup, but there seem to be some regressions.
We have a setup where we have multiple different servers that share the same code base but based on a BABEL_ENV we switch exactly what code is loaded with babel module resolve
"env":
"USER": {
"plugins":[[
"module-resolver",
{
"alias":{
"@admin-router": "./client/router/adminRouterEmpty",
"@server-includes": "./server/bundles/server_includes_user",
"@main-router": "./client/router/webRoutes"
}
},
"env"
]]
},
"ADMIN": {
"plugins":[[
"module-resolver",
{ "alias":{
"@admin-router": "./client/router/adminRouter",
"@server-includes": "./server/bundles/server_includes",
"@main-router": "./client/router/webRoutes"
}
},
"env"
]]
},
I am able to get this to still work for us by creating a couple files that I keep in babel so that we can choose to still do babel for these
"excludeApp": [
"babelImportWrapper.ts"
]
THen we run it with sharing the mongo but a different local directory
i.e.:
METEOR_LOCAL_DIR=.meteor/local2
So that we can keep bundles/caches separate.
THe problem seems to be that now if I try to run two of these servers some things start to conflict with this new bundling and it ranomly crashes or fails to update.
So question, is there a way to set the CACHE directory so that we can continue to have multiple of these running. Also if you happen to know how to change swc based on an environment variable that would help us too, but from my research I don’t think that’s possible.
Edit: Tried it again, and the one crash seems to not be recurring, so must have been something random, I’ll open a bug if I can ever actually repro it, but if there is a way to specify a swc per ENV variable that would also be great, but I know that this is a super specific ask so I won’t really be expecting it