Skip to content

Commit c58fe7c

Browse files
committed
Glossary termify hoisting, and update definition.
1 parent 143d9f1 commit c58fe7c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/glossary.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -268,9 +268,9 @@ Redux middleware
268268
hooks
269269
[Hooks](https://reactjs.org/docs/hooks-overview.html) are a React API that allow function components to use React features, such as lifecycle methods, states, and so on.
270270
271-
hoisting (Yarn)
272-
An optimization provided by Yarn.
273-
By default JavaScript packages will directly include dependencies inside their local node_modules.
271+
hoisting
272+
[Hoisting](https://yarnpkg.com/advanced/lexicon#hoisting) is an optimization provided by Yarn.
273+
By default JavaScript packages will directly include dependencies inside their local `node_modules`.
274274
By hoisting we're "lifting" these inner dependencies to the top level `node_modules` directory, and thus optimize the generated bundles.
275275
In case two dependencies have conflicting version dependencies of the same library, the hoisting will not be possible (for that conflicting dependency) and you'll see multiple instances of the same library in the bundle, or you'll see that the add-on receives its own `node_modules` folder.
276276

0 commit comments

Comments
 (0)