Skip to content
This repository was archived by the owner on Jul 19, 2019. It is now read-only.

Commit 3ca6e84

Browse files
committed
v0.1.0
1 parent d6e8746 commit 3ca6e84

5 files changed

Lines changed: 27 additions & 15 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,4 @@ node_modules
2929

3030
.DS_Store
3131
showcase
32+
.generator-release

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "react-chartjs",
33
"main": "react-chartjs.js",
4-
"version": "0.0.1",
4+
"version": "0.1.0",
55
"homepage": "https://github.com/jhudson8/react-chartjs",
66
"authors": [
77
"Joe Hudson <joehud@gmail.com>"

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-chartjs",
3-
"version": "0.0.1",
3+
"version": "0.1.0",
44
"description": "react charting components using the chartjs lib",
55
"main": "index.js",
66
"scripts": {

react-chartjs.js

Lines changed: 22 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* react-charts v0.0.1
2+
* react-charts v0.1.0
33
* https://github.com/jhudson8/react-charts
44
*
55
*
@@ -69,16 +69,27 @@
6969
/* 0 */
7070
/***/ function(module, exports, __webpack_require__) {
7171

72-
Chart.React = {
73-
Bar: __webpack_require__(1),
74-
Doughnut: __webpack_require__(2),
75-
Line: __webpack_require__(3),
76-
Pie: __webpack_require__(4),
77-
PolarArea: __webpack_require__(5),
78-
Radar: __webpack_require__(6)
79-
};
80-
81-
72+
var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function(main) {
73+
if (typeof Chart === 'function') {
74+
// script include
75+
main(Chart);
76+
} else {
77+
// AMD
78+
!(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_RESULT__ = function() {
79+
return main;
80+
}.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
81+
}
82+
})(function(Chart) {
83+
Chart.React = {
84+
Bar: __webpack_require__(1),
85+
Doughnut: __webpack_require__(2),
86+
Line: __webpack_require__(3),
87+
Pie: __webpack_require__(4),
88+
PolarArea: __webpack_require__(5),
89+
Radar: __webpack_require__(6)
90+
};
91+
return Chart;
92+
});
8293

8394

8495

react-chartjs.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.

0 commit comments

Comments
 (0)