discourse/app/assets/javascripts/handlebars-shim.js

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
497 B
JavaScript
Raw Normal View History

// allow us to import this as a module
if (typeof define !== "undefined") {
define("handlebars", ["exports"], function (__exports__) {
// It might not be defined server side, which is OK for pretty-text
if (typeof Handlebars !== "undefined") {
2020-05-01 14:11:45 -04:00
// eslint-disable-next-line
__exports__.default = Handlebars;
}
});
2020-05-01 14:11:45 -04:00
define("handlebars-compiler", ["exports"], function (__exports__) {
// eslint-disable-next-line
__exports__.default = Handlebars.compile;
});
}