Преглед на файлове

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);
 	}