Skip to content
This repository was archived by the owner on Dec 4, 2017. It is now read-only.

Commit f0d3b8e

Browse files
thelgevoldfilipesilva
authored andcommitted
addressing PR review items
1 parent 76f515d commit f0d3b8e

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

public/docs/ts/latest/cookbook/third-party-lib.jade

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
include ../_util-fns
22

33
:marked
4-
Traditionally, third party JavaScript libraries have been published in the form of a single minified JavaScript file.
5-
Consumers of the library have then included the minified JavaScript file, "as is", somewhere on the page using a `script` tag.
4+
Traditionally, third party JavaScript libraries have been published in the form of a single JavaScript file.
5+
Consumers of the library have then included the library, "as is", somewhere on the page using a `script` tag.
66

77
Modern web development has changed this process. Instead of publishing a "one size fits all" bundle, developers want to only include the parts of the library they actually need.
88

9-
This cookbook will show how to publish a third party library in a way that makes it possible to take advantage of techniques like Ahead of Time Compilation (AoT) and Tree shaking.
9+
This cookbook shows how to publish a third party library in a way that makes it possible to take advantage of techniques like Ahead of Time Compilation (AoT) and Tree Shaking.
1010

1111
<a id="toc"></a>
1212
:marked
@@ -31,7 +31,7 @@ include ../_util-fns
3131
:marked
3232
## Creating a Third Party Library
3333

34-
This cookbook will show how to create a simple Hero-Profile library and publish it with support for AoT compilation and Tree Shaking.
34+
This cookbook shows how to create a simple Hero-Profile library and publish it with support for AoT compilation and Tree Shaking.
3535

3636
A version of the library intended for JiT compiled applications will also be included.
3737

@@ -111,7 +111,7 @@ include ../_util-fns
111111

112112
In addition to supporting AoT, the library code should also be "Tree Shakable".
113113

114-
Thee Shakers work best with `ES2015` JavaScript.
114+
Tree Shakers work best with `ES2015` JavaScript.
115115

116116
`ES2015` `import` and `export` statements make it easier to statically analyse the code to determine which modules are in use by the application.
117117

@@ -127,7 +127,7 @@ include ../_util-fns
127127

128128
AoT compiled code is the prefered format for production builds, but due to the long compilation time, it may not be practical to use AoT during development.
129129

130-
To create a more flexible developer experience, a JiT compatible build of the library should be published as well. The format of the JiT bundle is `umd`, which stands for Universal Module Definition. Shipping the bundle as `umd` ensures compatability with most common module loading formats.
130+
To create a more flexible developer experience, a JiT compatible build of the library should be published as well. The format of the JiT bundle is `umd`, which stands for Universal Module Definition. Shipping the bundle as `umd` ensures compatibility with most common module loading formats.
131131

132132
The `umd` bundle will ship as a single file containing the JavaScript and inlined versions of any external templates or css.
133133

@@ -154,7 +154,7 @@ include ../_util-fns
154154
## Publish
155155

156156
:marked
157-
`Rollup` wil create the `umd` bundle, but but prior to bundling, all external templates or css files must be inlined.
157+
`Rollup` outputs the `umd` bundle, but prior to bundling, all external templates or css files must be inlined.
158158

159159
There are a few options for how to do inlining. This cookbook uses an approach borrowed from `Angular Material 2`.
160160

0 commit comments

Comments
 (0)