mirror of
https://github.com/discourse/discourse.git
synced 2024-12-16 20:03:42 +08:00
dc268822a4
This gives us backwards compatibility with those.
20 lines
642 B
JavaScript
20 lines
642 B
JavaScript
// 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") {
|
|
// eslint-disable-next-line
|
|
__exports__.default = Handlebars;
|
|
__exports__.compile = function () {
|
|
// eslint-disable-next-line
|
|
return Handlebars.compile.apply(this, arguments);
|
|
};
|
|
}
|
|
});
|
|
|
|
define("handlebars-compiler", ["exports"], function (__exports__) {
|
|
// eslint-disable-next-line
|
|
__exports__.default = Handlebars.compile;
|
|
});
|
|
}
|