Skip to content

Commit 2f36785

Browse files
simon04joshwiens
authored andcommitted
docs(README): add links to docs (#45)
1 parent 15e105b commit 2f36785

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

README.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@
99
src="https://cdn.rawgit.com/webpack/media/e7485eb2/logo/icon.svg">
1010
</a>
1111
<h1>Expose Loader</h1>
12-
<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 <a href="https://webpack.js.org/guides/shimming/">supporting libraries that depend on libraries in globals</a>.<p>
1513
</div>
1614

1715
<h2 align="center">Install</h2>
@@ -89,9 +87,10 @@ module: {
8987
}
9088
```
9189

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
9594
expose only applies to the react module. And it's only exposed when used in the
9695
bundle.
9796

0 commit comments

Comments
 (0)