Closed ptrdom closed 1 year ago
Would a PR to add this setting be accepted? Seems like it would definitely be useful and I cannot think of a simple workaround for it, scalajs-bundler even has its own copy of JSDOMNodeJSEnv to do it - https://github.com/scalacenter/scalajs-bundler/blob/main/sbt-scalajs-bundler/src/main/scala/scalajsbundler/JSDOMNodeJSEnv.scala.
JSDOMNodeJSEnv
Isn't it enough to set the NODE_PATH env variable for this?
NODE_PATH
https://stackoverflow.com/a/26293141/1149944
@gzm0 This indeed works, env variables are configurable in the current Config implementation. Thank you!
Config
Would a PR to add this setting be accepted? Seems like it would definitely be useful and I cannot think of a simple workaround for it, scalajs-bundler even has its own copy of
JSDOMNodeJSEnv
to do it - https://github.com/scalacenter/scalajs-bundler/blob/main/sbt-scalajs-bundler/src/main/scala/scalajsbundler/JSDOMNodeJSEnv.scala.