Browse Source

Build fix

JC Brand 8 years ago
parent
commit
eef002f2b7
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/lodash.noconflict.js

+ 1 - 1
src/lodash.noconflict.js

@@ -1,6 +1,6 @@
 /*global define */
 /*global define */
 define(['lodash'], function (_) {
 define(['lodash'], function (_) {
-    if (!_.isUndefined(require)) {
+    if (!_.isUndefined(require) && !_.isUndefined(require.s)) {
         /* XXX: This is a hack to make sure that the compiled templates have
         /* XXX: This is a hack to make sure that the compiled templates have
          * access to the _ object.
          * access to the _ object.
          *
          *