mirror of
https://github.com/discourse/discourse.git
synced 2024-11-28 05:03:39 +08:00
d615de9139
* Remove Handlebars.SafeString usage * DEV: Support for `import Handlebars from 'handlebars'`; * FIX: Sprockets was broken when `node_modules` was present By default the old version of sprockets looks for application.js anywhere, including in a node_modules folder if this exists (which it will when we move to Ember CLI.)
10 lines
307 B
JavaScript
10 lines
307 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") {
|
|
__exports__.default = Handlebars;
|
|
}
|
|
});
|
|
}
|