Selaa lähdekoodia

Merge pull request #4824 from Atry/patch-11

Make require an external function
Simon Krajewski 9 vuotta sitten
vanhempi
commit
368ea7975b
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  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
 		This is only supported in environments where `require` function
 		is available, such as Node.js or RequireJS.
 		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);
 		return untyped __js__("require")(module);
 	}
 	}