82f2b76e25
We now use webpack instead of SystemJS, effectively bundling modules into one file (plus commons chunks) for every entry point. This results in a much smaller extension size (almost half). Furthermore we use yarn/npm even for extension run-time dependencies. This relieves us from manually vendoring and building dependencies. It's also easier to understand for new developers familiar with node.
12 lines
580 B
JavaScript
12 lines
580 B
JavaScript
require('./es6.array.iterator');
|
|
var global = require('./$.global')
|
|
, hide = require('./$.hide')
|
|
, Iterators = require('./$.iterators')
|
|
, ITERATOR = require('./$.wks')('iterator')
|
|
, NL = global.NodeList
|
|
, HTC = global.HTMLCollection
|
|
, NLProto = NL && NL.prototype
|
|
, HTCProto = HTC && HTC.prototype
|
|
, ArrayValues = Iterators.NodeList = Iterators.HTMLCollection = Iterators.Array;
|
|
if(NLProto && !NLProto[ITERATOR])hide(NLProto, ITERATOR, ArrayValues);
|
|
if(HTCProto && !HTCProto[ITERATOR])hide(HTCProto, ITERATOR, ArrayValues); |