mirror of
https://github.com/chartjs/Chart.js.git
synced 2024-10-06 04:09:08 +02:00
Merge pull request #409 from BrettBukowski/commonjs
Add support for CommonJS module definition
This commit is contained in:
commit
2183d09b58
2
Chart.js
vendored
2
Chart.js
vendored
@ -1873,6 +1873,8 @@
|
||||
define(function(){
|
||||
return Chart;
|
||||
});
|
||||
} else if (typeof module === 'object' && module.exports) {
|
||||
module.exports = Chart;
|
||||
}
|
||||
|
||||
root.Chart = Chart;
|
||||
|
2
Chart.min.js
vendored
2
Chart.min.js
vendored
File diff suppressed because one or more lines are too long
@ -1873,6 +1873,8 @@
|
||||
define(function(){
|
||||
return Chart;
|
||||
});
|
||||
} else if (typeof module === 'object' && module.exports) {
|
||||
module.exports = Chart;
|
||||
}
|
||||
|
||||
root.Chart = Chart;
|
||||
|
Loading…
Reference in New Issue
Block a user