Skip to content

Commit

Permalink
doc: fix links (#1168)
Browse files Browse the repository at this point in the history
* doc: fix links for dynamic-module-loading

* doc: fix links to webpack.js.org
  • Loading branch information
simon04 authored Aug 10, 2020
1 parent 961e83c commit 562b631
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ npm install typescript --save-dev
### Running

Use webpack like normal, including `webpack --watch` and `webpack-dev-server`, or through another
build system using the [Node.js API](http://webpack.github.io/docs/node.js-api.html).
build system using the [Node.js API](https://webpack.js.org/api/node/).

### Examples

Expand Down Expand Up @@ -224,7 +224,7 @@ require("!style!css!./style.css");
```

The same basic process is required for code splitting. In this case, you `import` modules you need but you
don't directly use them. Instead you require them at [split points](http://webpack.github.io/docs/code-splitting.html#defining-a-split-point). See [this example](test/comparison-tests/codeSplitting) and [this example](test/comparison-tests/es6codeSplitting) for more details.
don't directly use them. Instead you require them at [split points](https://webpack.js.org/guides/code-splitting/). See [this example](test/comparison-tests/codeSplitting) and [this example](test/comparison-tests/es6codeSplitting) for more details.

[TypeScript 2.4 provides support for ECMAScript's new `import()` calls. These calls import a module and return a promise to that module.](https://blogs.msdn.microsoft.com/typescript/2017/06/12/announcing-typescript-2-4-rc/) This is also supported in webpack - details on usage can be found [here](https://webpack.js.org/guides/code-splitting-async/#dynamic-import-import-). Happy code splitting!

Expand Down
4 changes: 2 additions & 2 deletions test/comparison-tests/codeSplitting/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ This test shows how to do simple code splitting with TypeScript and webpack.
See the comments in `app.ts` for a quick overview of the process.

More information can be found at these sites:
- https://github.com/Microsoft/TypeScript/wiki/Modules#dynamic-module-loading-in-nodejs
- http://webpack.github.io/docs/code-splitting.html
- https://www.typescriptlang.org/docs/handbook/modules.html#dynamic-module-loading-in-nodejs
- https://webpack.js.org/guides/code-splitting/
- https://github.com/webpack/webpack/tree/master/examples/code-splitting
4 changes: 2 additions & 2 deletions test/comparison-tests/conditionalRequire/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ Try defining and undefining the `DEBUG` constant in `webpack.config.js` and see
the outputs (e.g. [`expectedOutput-1.6/bundle.js`](expectedOutput-1.6/bundle.js)).

More information can be found at these sites:
- https://github.com/Microsoft/TypeScript/wiki/Modules#dynamic-module-loading-in-nodejs
- https://github.com/webpack/docs/wiki/list-of-plugins#defineplugin
- https://www.typescriptlang.org/docs/handbook/modules.html#dynamic-module-loading-in-nodejs
- https://webpack.js.org/plugins/define-plugin/
- https://github.com/webpack/webpack/tree/master/examples/multi-compiler
4 changes: 2 additions & 2 deletions test/comparison-tests/es6codeSplitting/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ ES6 modules.
See the comments in `app.ts` for a quick overview of the process.

More information can be found at these sites:
- https://github.com/Microsoft/TypeScript/wiki/Modules#dynamic-module-loading-in-nodejs
- http://webpack.github.io/docs/code-splitting.html
- https://www.typescriptlang.org/docs/handbook/modules.html#dynamic-module-loading-in-nodejs
- https://webpack.js.org/guides/code-splitting/
- https://github.com/webpack/webpack/tree/master/examples/code-splitting
4 changes: 2 additions & 2 deletions test/execution-tests/babel-codeSplitting/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ This test shows how to do simple code splitting with TypeScript and webpack.
See the comments in `app.ts` for a quick overview of the process.

More information can be found at these sites:
- https://github.com/Microsoft/TypeScript/wiki/Modules#dynamic-module-loading-in-nodejs
- http://webpack.github.io/docs/code-splitting.html
- https://www.typescriptlang.org/docs/handbook/modules.html#dynamic-module-loading-in-nodejs
- https://webpack.js.org/guides/code-splitting/
- https://github.com/webpack/webpack/tree/master/examples/code-splitting

0 comments on commit 562b631

Please sign in to comment.