Skip to content

Commit 9b343e7

Browse files
Muntermontogeek
authored andcommitted
fix(site): Upgrade to hyperlink 4.4.0 (#3337)
* Upgrade to hyperlink 4.4.0 * Fix fragment links that were broken due to http redirects
1 parent b14bd1d commit 9b343e7

9 files changed

+12
-12
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@
104104
"html-webpack-template": "^6.1.0",
105105
"http-server": "^0.10.0",
106106
"husky": "^1.0.0-rc.8",
107-
"hyperlink": "^4.3.1",
107+
"hyperlink": "^4.4.0",
108108
"lint-staged": "^8.1.0",
109109
"loader-utils": "^1.1.0",
110110
"lodash": "^4.17.4",

src/content/api/hot-module-replacement.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ related:
1313
url: /guides/hot-module-replacement
1414
---
1515

16-
If [Hot Module Replacement](/concepts/hot-module-replacement) has been enabled via the [`HotModuleReplacementPlugin`](/plugins/hot-module-replacement-plugin), its interface will be exposed under the [`module.hot` property](/api/module-variables#modulehot-webpack-specific). Typically, users will check to see if the interface is accessible, then begin working with it. As an example, here's how you might `accept` an updated module:
16+
If [Hot Module Replacement](/concepts/hot-module-replacement) has been enabled via the [`HotModuleReplacementPlugin`](/plugins/hot-module-replacement-plugin), its interface will be exposed under the [`module.hot` property](/api/module-variables/#modulehot-webpack-specific). Typically, users will check to see if the interface is accessible, then begin working with it. As an example, here's how you might `accept` an updated module:
1717

1818
``` js
1919
if (module.hot) {

src/content/api/loaders.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,9 @@ module.exports.raw = true;
9999

100100
Loaders are __always__ called from right to left. There are some instances where the loader only cares about the __metadata__ behind a request and can ignore the results of the previous loader. The `pitch` method on loaders is called from __left to right__ before the loaders are actually executed (from right to left).
101101

102-
T> Loaders may be added inline in requests and disabled via inline prefixes, which will impact the order in which they are "pitched" and executed. See [`Rule.enforce`](/configuration/module#ruleenforce) for more details.
102+
T> Loaders may be added inline in requests and disabled via inline prefixes, which will impact the order in which they are "pitched" and executed. See [`Rule.enforce`](/configuration/module/#ruleenforce) for more details.
103103

104-
For the following configuration of [`use`](/configuration/module#ruleuse):
104+
For the following configuration of [`use`](/configuration/module/#ruleuse):
105105

106106
``` javascript
107107
module.exports = {

src/content/api/module-methods.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ W> Using it asynchronously may not have the expected effect.
177177
require.resolve(dependency: String);
178178
```
179179

180-
Synchronously retrieve a module's ID. The compiler will ensure that the dependency is available in the output bundle. See [`module.id`](/api/module-variables#moduleid-commonjs) for more information.
180+
Synchronously retrieve a module's ID. The compiler will ensure that the dependency is available in the output bundle. See [`module.id`](/api/module-variables/#moduleid-commonjs) for more information.
181181

182182
W> Module ID is a number in webpack (in contrast to NodeJS where it is a string -- the filename).
183183

src/content/api/node.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ of this function’s output.
232232
Returns a formatted string of the compilation information (similar to
233233
[CLI](/api/cli) output).
234234

235-
Options are the same as [`stats.toJson(options)`](/api/node#statstojsonoptions) with one addition:
235+
Options are the same as [`stats.toJson(options)`](/api/node/#statstojsonoptions) with one addition:
236236

237237
``` js
238238
stats.toString({

src/content/api/stats.mdx

+3-3
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ T> Asset's `info` property is available since webpack v4.40.0
8383

8484
### Chunk Objects
8585

86-
Each `chunks` object represents a group of modules known as a [chunk](/glossary#c). Each object follows the following structure:
86+
Each `chunks` object represents a group of modules known as a [chunk](/glossary/#c). Each object follows the following structure:
8787

8888
```js-with-links
8989
{
@@ -143,13 +143,13 @@ What good would these statistics be without some description of the compiled app
143143
],
144144
"errors": 0, // Number of errors when resolving or processing the module
145145
"failed": false, // Whether or not compilation failed on this module
146-
"id": 0, // The ID of the module (analogous to [`module.id`](/api/module-variables#moduleid-commonjs))
146+
"id": 0, // The ID of the module (analogous to [`module.id`](/api/module-variables/#moduleid-commonjs))
147147
"identifier": "(webpack)\\test\\browsertest\\lib\\index.web.js", // A unique ID used internally
148148
"name": "./lib/index.web.js", // Path to the actual file
149149
"optional": false, // All requests to this module are with `try... catch` blocks (irrelevant with ESM)
150150
"prefetched": false, // Indicates whether or not the module was [prefetched](/plugins/prefetch-plugin)
151151
"profile": {
152-
// Module specific compilation stats corresponding to the [`--profile` flag](/api/cli#profiling) (in milliseconds)
152+
// Module specific compilation stats corresponding to the [`--profile` flag](/api/cli/#profiling) (in milliseconds)
153153
"building": 73, // Loading and parsing
154154
"dependencies": 242, // Building dependencies
155155
"factory": 11 // Resolving dependencies

src/content/configuration/module.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ In a Rule the properties [`test`](#ruletest), [`include`](#ruleinclude), [`exclu
7474

7575
When using multiple conditions, all conditions must match.
7676

77-
W> Be careful! The resource is the _resolved_ path of the file, which means symlinked resources are the real path _not_ the symlink location. This is good to remember when using tools that symlink packages (like `npm link`), common conditions like `/node_modules/` may inadvertently miss symlinked files. Note that you can turn off symlink resolving (so that resources are resolved to the symlink path) via [`resolve.symlinks`](/configuration/resolve#resolvesymlinks).
77+
W> Be careful! The resource is the _resolved_ path of the file, which means symlinked resources are the real path _not_ the symlink location. This is good to remember when using tools that symlink packages (like `npm link`), common conditions like `/node_modules/` may inadvertently miss symlinked files. Note that you can turn off symlink resolving (so that resources are resolved to the symlink path) via [`resolve.symlinks`](/configuration/resolve/#resolvesymlinks).
7878

7979

8080
### Rule results

src/content/configuration/output.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ For example, if you have 2 libraries, with namespaces `library1` and `library2`,
240240

241241
This option determines the name of each output bundle. The bundle is written to the directory specified by the [`output.path`](#outputpath) option.
242242

243-
For a single [`entry`](/configuration/entry-context#entry) point, this can be a static name.
243+
For a single [`entry`](/configuration/entry-context/#entry) point, this can be a static name.
244244

245245
__webpack.config.js__
246246

src/content/glossary.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ This index lists common terms used throughout the webpack ecosystem.
1515

1616
## A
1717

18-
- [__Asset__](/guides/asset-management/): This a general term for the images, fonts, media, and any other kind of files that are typically used in websites and other applications. These typically end up as individual files within the [output](/glossary#o) but can also be inlined via things like the [style-loader](/loaders/style-loader) or [url-loader](/loaders/url-loader).
18+
- [__Asset__](/guides/asset-management/): This a general term for the images, fonts, media, and any other kind of files that are typically used in websites and other applications. These typically end up as individual files within the [output](/glossary/#o) but can also be inlined via things like the [style-loader](/loaders/style-loader) or [url-loader](/loaders/url-loader).
1919

2020

2121
## B

0 commit comments

Comments
 (0)