blob: baa566b3acbce04c6eb3389e4e5c495de9da41c0 [file] [log] [blame] [edit]
--- build_bazel_rules_nodejs/internal/node/node.bzl 2021-02-07 16:09:38.099484740 +0100
+++ build_bazel_rules_nodejs/internal/node/node_fixed.bzl 2021-02-07 16:10:33.583847582 +0100
@@ -87,6 +87,6 @@
for d in ctx.attr.data:
if hasattr(d, "runfiles_module_mappings"):
for [mn, mr] in d.runfiles_module_mappings.items():
- escaped = mn.replace("/", "\/").replace(".", "\.")
+ escaped = mn.replace("/", "\\/").replace(".", "\\.")
mapping = "{module_name: /^%s\\b/, module_root: '%s'}" % (escaped, mr)
module_mappings.append(mapping)