Skip to content

Commit 5d58de6

Browse files
author
Simon Harte
committed
we actually need to define a dependency config for all module systems
1 parent 399144a commit 5d58de6

File tree

4 files changed

+9
-6
lines changed

4 files changed

+9
-6
lines changed

dist/chartist-plugin-tooltip.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
(function (root, factory) {
22
if (typeof define === 'function' && define.amd) {
33
// AMD. Register as an anonymous module.
4-
define([], function (Chartist) {
4+
define(["chartist"], function (Chartist) {
55
return (root.returnExportsGlobal = factory(Chartist));
66
});
77
} else if (typeof exports === 'object') {
88
// Node. Does not work with strict CommonJS, but
99
// only CommonJS-like enviroments that support module.exports,
1010
// like Node.
11-
module.exports = factory();
11+
module.exports = factory(require("chartist"));
1212
} else {
13-
root['Chartist.plugins.tooltips'] = factory();
13+
root['Chartist.plugins.tooltips'] = factory(Chartist);
1414
}
1515
}(this, function (Chartist) {
1616

dist/chartist-plugin-tooltip.min.js

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

0 commit comments

Comments
 (0)