File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -54,6 +54,7 @@ class EditorExportECMAScript : public EditorExportPlugin {
54
54
55
55
if (script_mode == EditorExportPreset::MODE_SCRIPT_TEXT)
56
56
return ;
57
+
57
58
String extension = p_path.get_extension ();
58
59
if (extension != EXT_JSCLASS && extension != EXT_JSMODULE)
59
60
return ;
@@ -106,14 +107,15 @@ class EditorExportECMAScript : public EditorExportPlugin {
106
107
DirAccess::remove_file_or_error (tmp_path);
107
108
108
109
} else {
109
-
110
+ # if 0 // Disable compile to bytecode as it is not battle tested on all platform
110
111
Error err;
111
112
String code = FileAccess::get_file_as_string(p_path, &err);
112
113
ERR_FAIL_COND(err != OK);
113
114
114
115
Vector<uint8_t> file;
115
116
ERR_FAIL_COND(ECMAScriptLanguage::get_singleton()->get_main_binder()->compile_to_bytecode(code, p_path, file) != OK);
116
117
add_file(p_path.get_basename() + "." + extension + "b", file, true);
118
+ #endif
117
119
}
118
120
}
119
121
};
You can’t perform that action at this time.
0 commit comments