瀏覽代碼

Build fix

JC Brand 8 年之前
父節點
當前提交
eef002f2b7
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/lodash.noconflict.js

+ 1 - 1
src/lodash.noconflict.js

@@ -1,6 +1,6 @@
 /*global define */
 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
          * access to the _ object.
          *