summaryrefslogtreecommitdiff
path: root/chromium/third_party/node/node_modules/resolve/lib/normalize-options.js
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/node/node_modules/resolve/lib/normalize-options.js')
-rw-r--r--chromium/third_party/node/node_modules/resolve/lib/normalize-options.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/chromium/third_party/node/node_modules/resolve/lib/normalize-options.js b/chromium/third_party/node/node_modules/resolve/lib/normalize-options.js
new file mode 100644
index 00000000000..4b56904eaea
--- /dev/null
+++ b/chromium/third_party/node/node_modules/resolve/lib/normalize-options.js
@@ -0,0 +1,10 @@
+module.exports = function (x, opts) {
+ /**
+ * This file is purposefully a passthrough. It's expected that third-party
+ * environments will override it at runtime in order to inject special logic
+ * into `resolve` (by manipulating the options). One such example is the PnP
+ * code path in Yarn.
+ */
+
+ return opts || {};
+};