You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/content/guides/author-libraries.md
+17-11Lines changed: 17 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ contributors:
9
9
- marioacc
10
10
---
11
11
12
-
Aside from applications, webpack can also be used to bundle JavaScript libraries. The following guide is meant for library authors looking to streamline their bundling strategy..
12
+
Aside from applications, webpack can also be used to bundle JavaScript libraries. The following guide is meant for library authors looking to streamline their bundling strategy.
13
13
14
14
15
15
## Authoring a Library
@@ -80,15 +80,19 @@ export function wordToNum(word) {
80
80
The usage specification for the library use will be as follows:
/^library\/.+$/// everything that starts with "library/"
223
+
// everything that starts with "library/"
224
+
/^library\/.+$/
220
225
]
221
226
...
222
227
};
@@ -297,7 +302,8 @@ __package.json__
297
302
```javascript
298
303
{
299
304
"main":"dist/webpack-numbers.js",
300
-
"module":"src/index.js", // To add as standard module as per https://github.com/dherman/defense-of-dot-js/blob/master/proposal.md#typical-usage
305
+
// To add as standard module as per https://github.com/dherman/defense-of-dot-js/blob/master/proposal.md#typical-usage
0 commit comments