浏览代码

Merge pull request #4824 from Atry/patch-11

Make require an external function
Simon Krajewski 9 年之前
父节点
当前提交
368ea7975b
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      std/js/Lib.hx

+ 1 - 1
std/js/Lib.hx

@@ -50,7 +50,7 @@ class Lib {
 		This is only supported in environments where `require` function
 		is available, such as Node.js or RequireJS.
 	**/
-	public static inline function require( module:String ) : Dynamic {
+	@:extern public static inline function require( module:String ) : Dynamic {
 		return untyped __js__("require")(module);
 	}