Bazel does not have direct support for modules (See Issue #4005).
However, it is possible to provide bazel with a custom CROSSTOOL.
From https://docs.bazel.bui