You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Support dot notation in variable names
import?abc.def.ghi=>1
=> var abc = {};
abc.def = {};
abc.def.ghi = 1;
import?window.jQuery=jquery
=> var window = {};
window.jQuery = require("jquery");
* Removed unnecessary append syntax
* Special handling of "window" name
Dot notation involving window is handled slightly different
to not overwriting window properties
import?window.jQuery=jquery
=> window = (window || {});
window.jQuery = require("jquery");
* Added mocha and tests for nested imports
* Dont overwrite existing globals (removed special handling of 'window')
Nested imports will not overwrite top level globals. Eg.
import?abc.def=1
is compiled to
var abc = (abc || {});
abc.def = 1;
* Removed redundant tests
0 commit comments