Skip to content

Commit 5821a86

Browse files
author
matheusgrieger
committed
Merge branch 'develop'
2 parents 5e3abd3 + 53d1375 commit 5821a86

File tree

4 files changed

+20
-6
lines changed

4 files changed

+20
-6
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## v0.4.2
4+
5+
- **FIX** restored install function for ES6 modules
6+
37
## v0.4.1
48

59
- **FIX** accidentaly removed install function

dist/vue-clazy-load.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
8585
* Vue Clazy Load
8686
* Component-based lazy (CLazy) load images in Vue.js 2
8787
* @author Matheus Grieger
88-
* @version 0.4.1
88+
* @version 0.4.2
8989
*/
9090
var ClazyLoadComponent = {
9191
name: 'ClazyLoad',
@@ -284,14 +284,19 @@ var ClazyLoadComponent = {
284284
}
285285
};
286286

287-
// Exports install function for Vue
287+
// Export install function for CDN embeds
288288
var install = function install(Vue) {
289289
Vue.component('clazy-load', ClazyLoadComponent);
290290
};
291291

292292
// Component object
293293
var VueClazyLoad = ClazyLoadComponent;
294294

295+
// Exports default object for ES6 modules
296+
/* harmony default export */ __webpack_exports__["default"] = ({
297+
install: install
298+
});
299+
295300
/***/ })
296301
/******/ ]);
297302
});

dist/vue-clazy-load.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.

src/clazy-load.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Vue Clazy Load
33
* Component-based lazy (CLazy) load images in Vue.js 2
44
* @author Matheus Grieger
5-
* @version 0.4.1
5+
* @version 0.4.2
66
*/
77
const ClazyLoadComponent = {
88
name: 'ClazyLoad',
@@ -199,10 +199,15 @@ const ClazyLoadComponent = {
199199
}
200200
}
201201

202-
// Exports install function for Vue
202+
// Export install function for CDN embeds
203203
export const install = (Vue) => {
204204
Vue.component('clazy-load', ClazyLoadComponent)
205205
}
206206

207207
// Component object
208208
export const VueClazyLoad = ClazyLoadComponent
209+
210+
// Exports default object for ES6 modules
211+
export default {
212+
install
213+
}

0 commit comments

Comments
 (0)