Skip to content

Commit 72910dc

Browse files
committed
removed 'umdNamedDefine' property from webpack configuration
1 parent 0236b77 commit 72910dc

File tree

6 files changed

+7
-9
lines changed

6 files changed

+7
-9
lines changed

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,7 @@ function parser(item, index);
4545
`array-sort-by` can be included directly from a CDN in your page:
4646

4747
```html
48-
<!-- last version: 1.0.2 -->
49-
<script src="https://cdn.rawgit.com/jherax/array-sort-by/1.0.2/dist/sort-by.min.js"></script>
48+
<script src="https://cdn.rawgit.com/jherax/array-sort-by/1.0.3/dist/sort-by.min.js"></script>
5049
```
5150

5251
In the above case, the function [`sortBy`](#examples) is included as a global object in the browser.

dist/sort-by.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
/*! sortBy@v1.0.2. Jherax 2017. Visit https://github.com/jherax/array-sort-by */
1+
/*! sortBy@v1.0.3. Jherax 2017. Visit https://github.com/jherax/array-sort-by */
22
(function webpackUniversalModuleDefinition(root, factory) {
33
if(typeof exports === 'object' && typeof module === 'object')
44
module.exports = factory();
55
else if(typeof define === 'function' && define.amd)
6-
define("sortBy", [], factory);
6+
define([], factory);
77
else if(typeof exports === 'object')
88
exports["sortBy"] = factory();
99
else

dist/sort-by.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/sort-by.min.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "array-sort-by",
3-
"version": "1.0.2",
3+
"version": "1.0.3",
44
"description": "Sorts an array with multiple ordering criteria",
55
"author": "David Rivera <jherax@gmail.com>",
66
"main": "dist/sort-by.js",

webpack/build.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ const config = {
1515
output: {
1616
path: PATHS.dist.folder,
1717
filename: '[name].js',
18-
umdNamedDefine: true,
1918
libraryTarget: 'umd',
2019
library: 'sortBy', // global var in the browser
2120
},

0 commit comments

Comments
 (0)