You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<p>The expose loader adds modules to the global object. This is useful
13
-
for debugging, or supporting libraries that depend on libraries in
14
-
globals.<p>
12
+
<p>The expose loader adds modules to the global object. This is useful for debugging, or <ahref="https://webpack.js.org/guides/shimming/">supporting libraries that depend on libraries in globals</a>.<p>
15
13
</div>
16
14
17
15
<h2align="center">Install</h2>
@@ -89,9 +87,10 @@ module: {
89
87
}
90
88
```
91
89
92
-
The `require.resolve` is a node.js call (unrelated to `require.resolve` in webpack
93
-
processing -- check the node.js docs instead). `require.resolve` gives you the
94
-
absolute path to the module ("/.../app/node_modules/react/react.js"). So the
90
+
The [`require.resolve`](https://nodejs.org/api/all.html#globals_require_resolve)
91
+
is a Node.js call (unrelated to `require.resolve` in webpack
92
+
processing). `require.resolve` gives you the
93
+
absolute path to the module (`"/.../app/node_modules/react/react.js"`). So the
95
94
expose only applies to the react module. And it's only exposed when used in the
0 commit comments