mirror of
https://github.com/penpot/penpot.git
synced 2025-01-09 00:10:11 -05:00
Add externs for interop calls and enable advanced compilation.
This commit is contained in:
parent
7e8730c26e
commit
aeff49b3e6
2 changed files with 32 additions and 1 deletions
29
resources/externs/main.js
Normal file
29
resources/externs/main.js
Normal file
|
@ -0,0 +1,29 @@
|
|||
var TopLevel = {
|
||||
"offsetX": function() {},
|
||||
"offsetY": function() {},
|
||||
"nativeEvent": function() {},
|
||||
"target": function() {},
|
||||
"dataTransfer": function() {},
|
||||
"dropEffect": function() {},
|
||||
"value": function() {},
|
||||
"offsetHeight": function() {},
|
||||
"offsetWidth": function() {},
|
||||
"scrollTop": function() {},
|
||||
"scrollLeft": function() {},
|
||||
"refs": function() {},
|
||||
"ctrlKey": function() {},
|
||||
"shiftKey": function() {},
|
||||
"keyCode": function() {},
|
||||
"currentTarget": function() {},
|
||||
"createObjectURL": function() {},
|
||||
"URL": function() {},
|
||||
"innerHTML": function() {},
|
||||
"getElementById": function() {},
|
||||
"clientX": function() {},
|
||||
"clientY": function() {},
|
||||
"href": function() {},
|
||||
"value": function() {},
|
||||
"identifier": function() {},
|
||||
"getBoundingClientRect": function() {},
|
||||
"getBBox": function() {}
|
||||
};
|
|
@ -16,7 +16,9 @@
|
|||
:output-dir "resources/public/js"
|
||||
:closure-defines {"uxbox.repo.core.url"
|
||||
"https://test.uxbox.io/api"}
|
||||
:optimizations :simple
|
||||
:optimizations :advanced
|
||||
:externs ["externs/main.js"]
|
||||
:source-map "resources/public/js/main.js.map"
|
||||
:static-fns true
|
||||
:language-in :ecmascript5
|
||||
:language-out :ecmascript5
|
||||
|
|
Loading…
Reference in a new issue