rollup 1.21.0 → 1.21.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/rollup.es.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v1.21.0
4
- Sun, 08 Sep 2019 13:11:17 GMT - commit 1b729411e18caab5fc05c7a5acdfe7bf53b231c2
3
+ Rollup.js v1.21.4
4
+ Mon, 16 Sep 2019 10:32:37 GMT - commit 9bd47a242ccd37b62e9bc0fe172f0115680be795
5
5
 
6
6
 
7
7
  https://github.com/rollup/rollup
@@ -49,7 +49,7 @@ function __awaiter(thisArg, _arguments, P, generator) {
49
49
  });
50
50
  }
51
51
 
52
- var version = "1.21.0";
52
+ var version = "1.21.4";
53
53
 
54
54
  var minimalisticAssert = assert;
55
55
  function assert(val, msg) {
@@ -8340,43 +8340,54 @@ function isReference(node, parent) {
8340
8340
  const ValueProperties = Symbol('Value Properties');
8341
8341
  const PURE = { pure: true };
8342
8342
  const IMPURE = { pure: false };
8343
- const OBJECT = {
8343
+ // We use shortened variables to reduce file size here
8344
+ /* OBJECT */
8345
+ const O = {
8344
8346
  // @ts-ignore
8345
8347
  __proto__: null,
8346
8348
  [ValueProperties]: IMPURE
8347
8349
  };
8348
- const PURE_FUNCTION = {
8350
+ /* PURE FUNCTION */
8351
+ const PF = {
8349
8352
  // @ts-ignore
8350
8353
  __proto__: null,
8351
8354
  [ValueProperties]: PURE
8352
8355
  };
8353
- const CONSTRUCTOR = {
8356
+ /* CONSTRUCTOR */
8357
+ const C = {
8354
8358
  // @ts-ignore
8355
8359
  __proto__: null,
8356
8360
  [ValueProperties]: IMPURE,
8357
- prototype: OBJECT
8361
+ prototype: O
8358
8362
  };
8359
- const PURE_CONSTRUCTOR = {
8363
+ /* PURE CONSTRUCTOR */
8364
+ const PC = {
8360
8365
  // @ts-ignore
8361
8366
  __proto__: null,
8362
8367
  [ValueProperties]: PURE,
8363
- prototype: OBJECT
8368
+ prototype: O
8364
8369
  };
8365
8370
  const ARRAY_TYPE = {
8366
8371
  // @ts-ignore
8367
8372
  __proto__: null,
8368
8373
  [ValueProperties]: PURE,
8369
- from: PURE_FUNCTION,
8370
- of: PURE_FUNCTION,
8371
- prototype: OBJECT
8374
+ from: PF,
8375
+ of: PF,
8376
+ prototype: O
8372
8377
  };
8373
8378
  const INTL_MEMBER = {
8374
8379
  // @ts-ignore
8375
8380
  __proto__: null,
8376
8381
  [ValueProperties]: PURE,
8377
- supportedLocalesOf: PURE_CONSTRUCTOR
8382
+ supportedLocalesOf: PC
8378
8383
  };
8379
8384
  const knownGlobals = {
8385
+ // Placeholders for global objects to avoid shape mutations
8386
+ global: O,
8387
+ globalThis: O,
8388
+ self: O,
8389
+ window: O,
8390
+ // Common globals
8380
8391
  // @ts-ignore
8381
8392
  __proto__: null,
8382
8393
  [ValueProperties]: IMPURE,
@@ -8384,188 +8395,188 @@ const knownGlobals = {
8384
8395
  // @ts-ignore
8385
8396
  __proto__: null,
8386
8397
  [ValueProperties]: IMPURE,
8387
- from: PURE_FUNCTION,
8388
- isArray: PURE_FUNCTION,
8389
- of: PURE_FUNCTION,
8390
- prototype: OBJECT
8398
+ from: PF,
8399
+ isArray: PF,
8400
+ of: PF,
8401
+ prototype: O
8391
8402
  },
8392
8403
  ArrayBuffer: {
8393
8404
  // @ts-ignore
8394
8405
  __proto__: null,
8395
8406
  [ValueProperties]: PURE,
8396
- isView: PURE_FUNCTION,
8397
- prototype: OBJECT
8407
+ isView: PF,
8408
+ prototype: O
8398
8409
  },
8399
- Atomics: OBJECT,
8400
- BigInt: CONSTRUCTOR,
8401
- BigInt64Array: CONSTRUCTOR,
8402
- BigUint64Array: CONSTRUCTOR,
8403
- Boolean: PURE_CONSTRUCTOR,
8410
+ Atomics: O,
8411
+ BigInt: C,
8412
+ BigInt64Array: C,
8413
+ BigUint64Array: C,
8414
+ Boolean: PC,
8404
8415
  // @ts-ignore
8405
- constructor: CONSTRUCTOR,
8406
- DataView: PURE_CONSTRUCTOR,
8416
+ constructor: C,
8417
+ DataView: PC,
8407
8418
  Date: {
8408
8419
  // @ts-ignore
8409
8420
  __proto__: null,
8410
8421
  [ValueProperties]: PURE,
8411
- now: PURE_FUNCTION,
8412
- parse: PURE_FUNCTION,
8413
- prototype: OBJECT,
8414
- UTC: PURE_FUNCTION
8422
+ now: PF,
8423
+ parse: PF,
8424
+ prototype: O,
8425
+ UTC: PF
8415
8426
  },
8416
- decodeURI: PURE_FUNCTION,
8417
- decodeURIComponent: PURE_FUNCTION,
8418
- encodeURI: PURE_FUNCTION,
8419
- encodeURIComponent: PURE_FUNCTION,
8420
- Error: PURE_CONSTRUCTOR,
8421
- escape: PURE_FUNCTION,
8422
- eval: OBJECT,
8423
- EvalError: PURE_CONSTRUCTOR,
8427
+ decodeURI: PF,
8428
+ decodeURIComponent: PF,
8429
+ encodeURI: PF,
8430
+ encodeURIComponent: PF,
8431
+ Error: PC,
8432
+ escape: PF,
8433
+ eval: O,
8434
+ EvalError: PC,
8424
8435
  Float32Array: ARRAY_TYPE,
8425
8436
  Float64Array: ARRAY_TYPE,
8426
- Function: CONSTRUCTOR,
8437
+ Function: C,
8427
8438
  // @ts-ignore
8428
- hasOwnProperty: OBJECT,
8429
- Infinity: OBJECT,
8439
+ hasOwnProperty: O,
8440
+ Infinity: O,
8430
8441
  Int16Array: ARRAY_TYPE,
8431
8442
  Int32Array: ARRAY_TYPE,
8432
8443
  Int8Array: ARRAY_TYPE,
8433
- isFinite: PURE_FUNCTION,
8434
- isNaN: PURE_FUNCTION,
8444
+ isFinite: PF,
8445
+ isNaN: PF,
8435
8446
  // @ts-ignore
8436
- isPrototypeOf: OBJECT,
8437
- JSON: OBJECT,
8438
- Map: PURE_CONSTRUCTOR,
8447
+ isPrototypeOf: O,
8448
+ JSON: O,
8449
+ Map: PC,
8439
8450
  Math: {
8440
8451
  // @ts-ignore
8441
8452
  __proto__: null,
8442
8453
  [ValueProperties]: IMPURE,
8443
- abs: PURE_FUNCTION,
8444
- acos: PURE_FUNCTION,
8445
- acosh: PURE_FUNCTION,
8446
- asin: PURE_FUNCTION,
8447
- asinh: PURE_FUNCTION,
8448
- atan: PURE_FUNCTION,
8449
- atan2: PURE_FUNCTION,
8450
- atanh: PURE_FUNCTION,
8451
- cbrt: PURE_FUNCTION,
8452
- ceil: PURE_FUNCTION,
8453
- clz32: PURE_FUNCTION,
8454
- cos: PURE_FUNCTION,
8455
- cosh: PURE_FUNCTION,
8456
- exp: PURE_FUNCTION,
8457
- expm1: PURE_FUNCTION,
8458
- floor: PURE_FUNCTION,
8459
- fround: PURE_FUNCTION,
8460
- hypot: PURE_FUNCTION,
8461
- imul: PURE_FUNCTION,
8462
- log: PURE_FUNCTION,
8463
- log10: PURE_FUNCTION,
8464
- log1p: PURE_FUNCTION,
8465
- log2: PURE_FUNCTION,
8466
- max: PURE_FUNCTION,
8467
- min: PURE_FUNCTION,
8468
- pow: PURE_FUNCTION,
8469
- random: PURE_FUNCTION,
8470
- round: PURE_FUNCTION,
8471
- sign: PURE_FUNCTION,
8472
- sin: PURE_FUNCTION,
8473
- sinh: PURE_FUNCTION,
8474
- sqrt: PURE_FUNCTION,
8475
- tan: PURE_FUNCTION,
8476
- tanh: PURE_FUNCTION,
8477
- trunc: PURE_FUNCTION
8454
+ abs: PF,
8455
+ acos: PF,
8456
+ acosh: PF,
8457
+ asin: PF,
8458
+ asinh: PF,
8459
+ atan: PF,
8460
+ atan2: PF,
8461
+ atanh: PF,
8462
+ cbrt: PF,
8463
+ ceil: PF,
8464
+ clz32: PF,
8465
+ cos: PF,
8466
+ cosh: PF,
8467
+ exp: PF,
8468
+ expm1: PF,
8469
+ floor: PF,
8470
+ fround: PF,
8471
+ hypot: PF,
8472
+ imul: PF,
8473
+ log: PF,
8474
+ log10: PF,
8475
+ log1p: PF,
8476
+ log2: PF,
8477
+ max: PF,
8478
+ min: PF,
8479
+ pow: PF,
8480
+ random: PF,
8481
+ round: PF,
8482
+ sign: PF,
8483
+ sin: PF,
8484
+ sinh: PF,
8485
+ sqrt: PF,
8486
+ tan: PF,
8487
+ tanh: PF,
8488
+ trunc: PF
8478
8489
  },
8479
- NaN: OBJECT,
8490
+ NaN: O,
8480
8491
  Number: {
8481
8492
  // @ts-ignore
8482
8493
  __proto__: null,
8483
8494
  [ValueProperties]: PURE,
8484
- isFinite: PURE_FUNCTION,
8485
- isInteger: PURE_FUNCTION,
8486
- isNaN: PURE_FUNCTION,
8487
- isSafeInteger: PURE_FUNCTION,
8488
- parseFloat: PURE_FUNCTION,
8489
- parseInt: PURE_FUNCTION,
8490
- prototype: OBJECT
8495
+ isFinite: PF,
8496
+ isInteger: PF,
8497
+ isNaN: PF,
8498
+ isSafeInteger: PF,
8499
+ parseFloat: PF,
8500
+ parseInt: PF,
8501
+ prototype: O
8491
8502
  },
8492
8503
  Object: {
8493
8504
  // @ts-ignore
8494
8505
  __proto__: null,
8495
8506
  [ValueProperties]: PURE,
8496
- create: PURE_FUNCTION,
8497
- getNotifier: PURE_FUNCTION,
8498
- getOwn: PURE_FUNCTION,
8499
- getOwnPropertyDescriptor: PURE_FUNCTION,
8500
- getOwnPropertyNames: PURE_FUNCTION,
8501
- getOwnPropertySymbols: PURE_FUNCTION,
8502
- getPrototypeOf: PURE_FUNCTION,
8503
- is: PURE_FUNCTION,
8504
- isExtensible: PURE_FUNCTION,
8505
- isFrozen: PURE_FUNCTION,
8506
- isSealed: PURE_FUNCTION,
8507
- keys: PURE_FUNCTION,
8508
- prototype: OBJECT
8507
+ create: PF,
8508
+ getNotifier: PF,
8509
+ getOwn: PF,
8510
+ getOwnPropertyDescriptor: PF,
8511
+ getOwnPropertyNames: PF,
8512
+ getOwnPropertySymbols: PF,
8513
+ getPrototypeOf: PF,
8514
+ is: PF,
8515
+ isExtensible: PF,
8516
+ isFrozen: PF,
8517
+ isSealed: PF,
8518
+ keys: PF,
8519
+ prototype: O
8509
8520
  },
8510
- parseFloat: PURE_FUNCTION,
8511
- parseInt: PURE_FUNCTION,
8521
+ parseFloat: PF,
8522
+ parseInt: PF,
8512
8523
  Promise: {
8513
8524
  // @ts-ignore
8514
8525
  __proto__: null,
8515
8526
  [ValueProperties]: IMPURE,
8516
- all: PURE_FUNCTION,
8517
- prototype: OBJECT,
8518
- race: PURE_FUNCTION,
8519
- resolve: PURE_FUNCTION
8527
+ all: PF,
8528
+ prototype: O,
8529
+ race: PF,
8530
+ resolve: PF
8520
8531
  },
8521
8532
  // @ts-ignore
8522
- propertyIsEnumerable: OBJECT,
8523
- Proxy: OBJECT,
8524
- RangeError: PURE_CONSTRUCTOR,
8525
- ReferenceError: PURE_CONSTRUCTOR,
8526
- Reflect: OBJECT,
8527
- RegExp: PURE_CONSTRUCTOR,
8528
- Set: PURE_CONSTRUCTOR,
8529
- SharedArrayBuffer: CONSTRUCTOR,
8533
+ propertyIsEnumerable: O,
8534
+ Proxy: O,
8535
+ RangeError: PC,
8536
+ ReferenceError: PC,
8537
+ Reflect: O,
8538
+ RegExp: PC,
8539
+ Set: PC,
8540
+ SharedArrayBuffer: C,
8530
8541
  String: {
8531
8542
  // @ts-ignore
8532
8543
  __proto__: null,
8533
8544
  [ValueProperties]: PURE,
8534
- fromCharCode: PURE_FUNCTION,
8535
- fromCodePoint: PURE_FUNCTION,
8536
- prototype: OBJECT,
8537
- raw: PURE_FUNCTION
8545
+ fromCharCode: PF,
8546
+ fromCodePoint: PF,
8547
+ prototype: O,
8548
+ raw: PF
8538
8549
  },
8539
8550
  Symbol: {
8540
8551
  // @ts-ignore
8541
8552
  __proto__: null,
8542
8553
  [ValueProperties]: PURE,
8543
- for: PURE_FUNCTION,
8544
- keyFor: PURE_FUNCTION,
8545
- prototype: OBJECT
8554
+ for: PF,
8555
+ keyFor: PF,
8556
+ prototype: O
8546
8557
  },
8547
- SyntaxError: PURE_CONSTRUCTOR,
8558
+ SyntaxError: PC,
8548
8559
  // @ts-ignore
8549
- toLocaleString: OBJECT,
8560
+ toLocaleString: O,
8550
8561
  // @ts-ignore
8551
- toString: OBJECT,
8552
- TypeError: PURE_CONSTRUCTOR,
8562
+ toString: O,
8563
+ TypeError: PC,
8553
8564
  Uint16Array: ARRAY_TYPE,
8554
8565
  Uint32Array: ARRAY_TYPE,
8555
8566
  Uint8Array: ARRAY_TYPE,
8556
8567
  Uint8ClampedArray: ARRAY_TYPE,
8557
8568
  // Technically, this is a global, but it needs special handling
8558
8569
  // undefined: ?,
8559
- unescape: PURE_FUNCTION,
8560
- URIError: PURE_CONSTRUCTOR,
8570
+ unescape: PF,
8571
+ URIError: PC,
8561
8572
  // @ts-ignore
8562
- valueOf: OBJECT,
8563
- WeakMap: PURE_CONSTRUCTOR,
8564
- WeakSet: PURE_CONSTRUCTOR,
8573
+ valueOf: O,
8574
+ WeakMap: PC,
8575
+ WeakSet: PC,
8565
8576
  // Additional globals shared by Node and Browser that are not strictly part of the language
8566
- clearInterval: CONSTRUCTOR,
8567
- clearTimeout: CONSTRUCTOR,
8568
- console: OBJECT,
8577
+ clearInterval: C,
8578
+ clearTimeout: C,
8579
+ console: O,
8569
8580
  Intl: {
8570
8581
  // @ts-ignore
8571
8582
  __proto__: null,
@@ -8577,12 +8588,595 @@ const knownGlobals = {
8577
8588
  PluralRules: INTL_MEMBER,
8578
8589
  RelativeTimeFormat: INTL_MEMBER
8579
8590
  },
8580
- setInterval: CONSTRUCTOR,
8581
- setTimeout: CONSTRUCTOR,
8582
- TextDecoder: CONSTRUCTOR,
8583
- TextEncoder: CONSTRUCTOR,
8584
- URL: CONSTRUCTOR,
8585
- URLSearchParams: CONSTRUCTOR
8591
+ setInterval: C,
8592
+ setTimeout: C,
8593
+ TextDecoder: C,
8594
+ TextEncoder: C,
8595
+ URL: C,
8596
+ URLSearchParams: C,
8597
+ // Browser specific globals
8598
+ AbortController: C,
8599
+ AbortSignal: C,
8600
+ addEventListener: O,
8601
+ alert: O,
8602
+ AnalyserNode: C,
8603
+ Animation: C,
8604
+ AnimationEvent: C,
8605
+ applicationCache: O,
8606
+ ApplicationCache: C,
8607
+ ApplicationCacheErrorEvent: C,
8608
+ atob: O,
8609
+ Attr: C,
8610
+ Audio: C,
8611
+ AudioBuffer: C,
8612
+ AudioBufferSourceNode: C,
8613
+ AudioContext: C,
8614
+ AudioDestinationNode: C,
8615
+ AudioListener: C,
8616
+ AudioNode: C,
8617
+ AudioParam: C,
8618
+ AudioProcessingEvent: C,
8619
+ AudioScheduledSourceNode: C,
8620
+ AudioWorkletNode: C,
8621
+ BarProp: C,
8622
+ BaseAudioContext: C,
8623
+ BatteryManager: C,
8624
+ BeforeUnloadEvent: C,
8625
+ BiquadFilterNode: C,
8626
+ Blob: C,
8627
+ BlobEvent: C,
8628
+ blur: O,
8629
+ BroadcastChannel: C,
8630
+ btoa: O,
8631
+ ByteLengthQueuingStrategy: C,
8632
+ Cache: C,
8633
+ caches: O,
8634
+ CacheStorage: C,
8635
+ cancelAnimationFrame: O,
8636
+ cancelIdleCallback: O,
8637
+ CanvasCaptureMediaStreamTrack: C,
8638
+ CanvasGradient: C,
8639
+ CanvasPattern: C,
8640
+ CanvasRenderingContext2D: C,
8641
+ ChannelMergerNode: C,
8642
+ ChannelSplitterNode: C,
8643
+ CharacterData: C,
8644
+ clientInformation: O,
8645
+ ClipboardEvent: C,
8646
+ close: O,
8647
+ closed: O,
8648
+ CloseEvent: C,
8649
+ Comment: C,
8650
+ CompositionEvent: C,
8651
+ confirm: O,
8652
+ ConstantSourceNode: C,
8653
+ ConvolverNode: C,
8654
+ CountQueuingStrategy: C,
8655
+ createImageBitmap: O,
8656
+ Credential: C,
8657
+ CredentialsContainer: C,
8658
+ crypto: O,
8659
+ Crypto: C,
8660
+ CryptoKey: C,
8661
+ CSS: C,
8662
+ CSSConditionRule: C,
8663
+ CSSFontFaceRule: C,
8664
+ CSSGroupingRule: C,
8665
+ CSSImportRule: C,
8666
+ CSSKeyframeRule: C,
8667
+ CSSKeyframesRule: C,
8668
+ CSSMediaRule: C,
8669
+ CSSNamespaceRule: C,
8670
+ CSSPageRule: C,
8671
+ CSSRule: C,
8672
+ CSSRuleList: C,
8673
+ CSSStyleDeclaration: C,
8674
+ CSSStyleRule: C,
8675
+ CSSStyleSheet: C,
8676
+ CSSSupportsRule: C,
8677
+ CustomElementRegistry: C,
8678
+ customElements: O,
8679
+ CustomEvent: C,
8680
+ DataTransfer: C,
8681
+ DataTransferItem: C,
8682
+ DataTransferItemList: C,
8683
+ defaultstatus: O,
8684
+ defaultStatus: O,
8685
+ DelayNode: C,
8686
+ DeviceMotionEvent: C,
8687
+ DeviceOrientationEvent: C,
8688
+ devicePixelRatio: O,
8689
+ dispatchEvent: O,
8690
+ document: O,
8691
+ Document: C,
8692
+ DocumentFragment: C,
8693
+ DocumentType: C,
8694
+ DOMError: C,
8695
+ DOMException: C,
8696
+ DOMImplementation: C,
8697
+ DOMMatrix: C,
8698
+ DOMMatrixReadOnly: C,
8699
+ DOMParser: C,
8700
+ DOMPoint: C,
8701
+ DOMPointReadOnly: C,
8702
+ DOMQuad: C,
8703
+ DOMRect: C,
8704
+ DOMRectReadOnly: C,
8705
+ DOMStringList: C,
8706
+ DOMStringMap: C,
8707
+ DOMTokenList: C,
8708
+ DragEvent: C,
8709
+ DynamicsCompressorNode: C,
8710
+ Element: C,
8711
+ ErrorEvent: C,
8712
+ Event: C,
8713
+ EventSource: C,
8714
+ EventTarget: C,
8715
+ external: O,
8716
+ fetch: O,
8717
+ File: C,
8718
+ FileList: C,
8719
+ FileReader: C,
8720
+ find: O,
8721
+ focus: O,
8722
+ FocusEvent: C,
8723
+ FontFace: C,
8724
+ FontFaceSetLoadEvent: C,
8725
+ FormData: C,
8726
+ frames: O,
8727
+ GainNode: C,
8728
+ Gamepad: C,
8729
+ GamepadButton: C,
8730
+ GamepadEvent: C,
8731
+ getComputedStyle: O,
8732
+ getSelection: O,
8733
+ HashChangeEvent: C,
8734
+ Headers: C,
8735
+ history: O,
8736
+ History: C,
8737
+ HTMLAllCollection: C,
8738
+ HTMLAnchorElement: C,
8739
+ HTMLAreaElement: C,
8740
+ HTMLAudioElement: C,
8741
+ HTMLBaseElement: C,
8742
+ HTMLBodyElement: C,
8743
+ HTMLBRElement: C,
8744
+ HTMLButtonElement: C,
8745
+ HTMLCanvasElement: C,
8746
+ HTMLCollection: C,
8747
+ HTMLContentElement: C,
8748
+ HTMLDataElement: C,
8749
+ HTMLDataListElement: C,
8750
+ HTMLDetailsElement: C,
8751
+ HTMLDialogElement: C,
8752
+ HTMLDirectoryElement: C,
8753
+ HTMLDivElement: C,
8754
+ HTMLDListElement: C,
8755
+ HTMLDocument: C,
8756
+ HTMLElement: C,
8757
+ HTMLEmbedElement: C,
8758
+ HTMLFieldSetElement: C,
8759
+ HTMLFontElement: C,
8760
+ HTMLFormControlsCollection: C,
8761
+ HTMLFormElement: C,
8762
+ HTMLFrameElement: C,
8763
+ HTMLFrameSetElement: C,
8764
+ HTMLHeadElement: C,
8765
+ HTMLHeadingElement: C,
8766
+ HTMLHRElement: C,
8767
+ HTMLHtmlElement: C,
8768
+ HTMLIFrameElement: C,
8769
+ HTMLImageElement: C,
8770
+ HTMLInputElement: C,
8771
+ HTMLLabelElement: C,
8772
+ HTMLLegendElement: C,
8773
+ HTMLLIElement: C,
8774
+ HTMLLinkElement: C,
8775
+ HTMLMapElement: C,
8776
+ HTMLMarqueeElement: C,
8777
+ HTMLMediaElement: C,
8778
+ HTMLMenuElement: C,
8779
+ HTMLMetaElement: C,
8780
+ HTMLMeterElement: C,
8781
+ HTMLModElement: C,
8782
+ HTMLObjectElement: C,
8783
+ HTMLOListElement: C,
8784
+ HTMLOptGroupElement: C,
8785
+ HTMLOptionElement: C,
8786
+ HTMLOptionsCollection: C,
8787
+ HTMLOutputElement: C,
8788
+ HTMLParagraphElement: C,
8789
+ HTMLParamElement: C,
8790
+ HTMLPictureElement: C,
8791
+ HTMLPreElement: C,
8792
+ HTMLProgressElement: C,
8793
+ HTMLQuoteElement: C,
8794
+ HTMLScriptElement: C,
8795
+ HTMLSelectElement: C,
8796
+ HTMLShadowElement: C,
8797
+ HTMLSlotElement: C,
8798
+ HTMLSourceElement: C,
8799
+ HTMLSpanElement: C,
8800
+ HTMLStyleElement: C,
8801
+ HTMLTableCaptionElement: C,
8802
+ HTMLTableCellElement: C,
8803
+ HTMLTableColElement: C,
8804
+ HTMLTableElement: C,
8805
+ HTMLTableRowElement: C,
8806
+ HTMLTableSectionElement: C,
8807
+ HTMLTemplateElement: C,
8808
+ HTMLTextAreaElement: C,
8809
+ HTMLTimeElement: C,
8810
+ HTMLTitleElement: C,
8811
+ HTMLTrackElement: C,
8812
+ HTMLUListElement: C,
8813
+ HTMLUnknownElement: C,
8814
+ HTMLVideoElement: C,
8815
+ IDBCursor: C,
8816
+ IDBCursorWithValue: C,
8817
+ IDBDatabase: C,
8818
+ IDBFactory: C,
8819
+ IDBIndex: C,
8820
+ IDBKeyRange: C,
8821
+ IDBObjectStore: C,
8822
+ IDBOpenDBRequest: C,
8823
+ IDBRequest: C,
8824
+ IDBTransaction: C,
8825
+ IDBVersionChangeEvent: C,
8826
+ IdleDeadline: C,
8827
+ IIRFilterNode: C,
8828
+ Image: C,
8829
+ ImageBitmap: C,
8830
+ ImageBitmapRenderingContext: C,
8831
+ ImageCapture: C,
8832
+ ImageData: C,
8833
+ indexedDB: O,
8834
+ innerHeight: O,
8835
+ innerWidth: O,
8836
+ InputEvent: C,
8837
+ IntersectionObserver: C,
8838
+ IntersectionObserverEntry: C,
8839
+ isSecureContext: O,
8840
+ KeyboardEvent: C,
8841
+ KeyframeEffect: C,
8842
+ length: O,
8843
+ localStorage: O,
8844
+ location: O,
8845
+ Location: C,
8846
+ locationbar: O,
8847
+ matchMedia: O,
8848
+ MediaDeviceInfo: C,
8849
+ MediaDevices: C,
8850
+ MediaElementAudioSourceNode: C,
8851
+ MediaEncryptedEvent: C,
8852
+ MediaError: C,
8853
+ MediaKeyMessageEvent: C,
8854
+ MediaKeySession: C,
8855
+ MediaKeyStatusMap: C,
8856
+ MediaKeySystemAccess: C,
8857
+ MediaList: C,
8858
+ MediaQueryList: C,
8859
+ MediaQueryListEvent: C,
8860
+ MediaRecorder: C,
8861
+ MediaSettingsRange: C,
8862
+ MediaSource: C,
8863
+ MediaStream: C,
8864
+ MediaStreamAudioDestinationNode: C,
8865
+ MediaStreamAudioSourceNode: C,
8866
+ MediaStreamEvent: C,
8867
+ MediaStreamTrack: C,
8868
+ MediaStreamTrackEvent: C,
8869
+ menubar: O,
8870
+ MessageChannel: C,
8871
+ MessageEvent: C,
8872
+ MessagePort: C,
8873
+ MIDIAccess: C,
8874
+ MIDIConnectionEvent: C,
8875
+ MIDIInput: C,
8876
+ MIDIInputMap: C,
8877
+ MIDIMessageEvent: C,
8878
+ MIDIOutput: C,
8879
+ MIDIOutputMap: C,
8880
+ MIDIPort: C,
8881
+ MimeType: C,
8882
+ MimeTypeArray: C,
8883
+ MouseEvent: C,
8884
+ moveBy: O,
8885
+ moveTo: O,
8886
+ MutationEvent: C,
8887
+ MutationObserver: C,
8888
+ MutationRecord: C,
8889
+ name: O,
8890
+ NamedNodeMap: C,
8891
+ NavigationPreloadManager: C,
8892
+ navigator: O,
8893
+ Navigator: C,
8894
+ NetworkInformation: C,
8895
+ Node: C,
8896
+ NodeFilter: O,
8897
+ NodeIterator: C,
8898
+ NodeList: C,
8899
+ Notification: C,
8900
+ OfflineAudioCompletionEvent: C,
8901
+ OfflineAudioContext: C,
8902
+ offscreenBuffering: O,
8903
+ OffscreenCanvas: C,
8904
+ open: O,
8905
+ openDatabase: O,
8906
+ Option: C,
8907
+ origin: O,
8908
+ OscillatorNode: C,
8909
+ outerHeight: O,
8910
+ outerWidth: O,
8911
+ PageTransitionEvent: C,
8912
+ pageXOffset: O,
8913
+ pageYOffset: O,
8914
+ PannerNode: C,
8915
+ parent: O,
8916
+ Path2D: C,
8917
+ PaymentAddress: C,
8918
+ PaymentRequest: C,
8919
+ PaymentRequestUpdateEvent: C,
8920
+ PaymentResponse: C,
8921
+ performance: O,
8922
+ Performance: C,
8923
+ PerformanceEntry: C,
8924
+ PerformanceLongTaskTiming: C,
8925
+ PerformanceMark: C,
8926
+ PerformanceMeasure: C,
8927
+ PerformanceNavigation: C,
8928
+ PerformanceNavigationTiming: C,
8929
+ PerformanceObserver: C,
8930
+ PerformanceObserverEntryList: C,
8931
+ PerformancePaintTiming: C,
8932
+ PerformanceResourceTiming: C,
8933
+ PerformanceTiming: C,
8934
+ PeriodicWave: C,
8935
+ Permissions: C,
8936
+ PermissionStatus: C,
8937
+ personalbar: O,
8938
+ PhotoCapabilities: C,
8939
+ Plugin: C,
8940
+ PluginArray: C,
8941
+ PointerEvent: C,
8942
+ PopStateEvent: C,
8943
+ postMessage: O,
8944
+ Presentation: C,
8945
+ PresentationAvailability: C,
8946
+ PresentationConnection: C,
8947
+ PresentationConnectionAvailableEvent: C,
8948
+ PresentationConnectionCloseEvent: C,
8949
+ PresentationConnectionList: C,
8950
+ PresentationReceiver: C,
8951
+ PresentationRequest: C,
8952
+ print: O,
8953
+ ProcessingInstruction: C,
8954
+ ProgressEvent: C,
8955
+ PromiseRejectionEvent: C,
8956
+ prompt: O,
8957
+ PushManager: C,
8958
+ PushSubscription: C,
8959
+ PushSubscriptionOptions: C,
8960
+ queueMicrotask: O,
8961
+ RadioNodeList: C,
8962
+ Range: C,
8963
+ ReadableStream: C,
8964
+ RemotePlayback: C,
8965
+ removeEventListener: O,
8966
+ Request: C,
8967
+ requestAnimationFrame: O,
8968
+ requestIdleCallback: O,
8969
+ resizeBy: O,
8970
+ ResizeObserver: C,
8971
+ ResizeObserverEntry: C,
8972
+ resizeTo: O,
8973
+ Response: C,
8974
+ RTCCertificate: C,
8975
+ RTCDataChannel: C,
8976
+ RTCDataChannelEvent: C,
8977
+ RTCDtlsTransport: C,
8978
+ RTCIceCandidate: C,
8979
+ RTCIceTransport: C,
8980
+ RTCPeerConnection: C,
8981
+ RTCPeerConnectionIceEvent: C,
8982
+ RTCRtpReceiver: C,
8983
+ RTCRtpSender: C,
8984
+ RTCSctpTransport: C,
8985
+ RTCSessionDescription: C,
8986
+ RTCStatsReport: C,
8987
+ RTCTrackEvent: C,
8988
+ screen: O,
8989
+ Screen: C,
8990
+ screenLeft: O,
8991
+ ScreenOrientation: C,
8992
+ screenTop: O,
8993
+ screenX: O,
8994
+ screenY: O,
8995
+ ScriptProcessorNode: C,
8996
+ scroll: O,
8997
+ scrollbars: O,
8998
+ scrollBy: O,
8999
+ scrollTo: O,
9000
+ scrollX: O,
9001
+ scrollY: O,
9002
+ SecurityPolicyViolationEvent: C,
9003
+ Selection: C,
9004
+ ServiceWorker: C,
9005
+ ServiceWorkerContainer: C,
9006
+ ServiceWorkerRegistration: C,
9007
+ sessionStorage: O,
9008
+ ShadowRoot: C,
9009
+ SharedWorker: C,
9010
+ SourceBuffer: C,
9011
+ SourceBufferList: C,
9012
+ speechSynthesis: O,
9013
+ SpeechSynthesisEvent: C,
9014
+ SpeechSynthesisUtterance: C,
9015
+ StaticRange: C,
9016
+ status: O,
9017
+ statusbar: O,
9018
+ StereoPannerNode: C,
9019
+ stop: O,
9020
+ Storage: C,
9021
+ StorageEvent: C,
9022
+ StorageManager: C,
9023
+ styleMedia: O,
9024
+ StyleSheet: C,
9025
+ StyleSheetList: C,
9026
+ SubtleCrypto: C,
9027
+ SVGAElement: C,
9028
+ SVGAngle: C,
9029
+ SVGAnimatedAngle: C,
9030
+ SVGAnimatedBoolean: C,
9031
+ SVGAnimatedEnumeration: C,
9032
+ SVGAnimatedInteger: C,
9033
+ SVGAnimatedLength: C,
9034
+ SVGAnimatedLengthList: C,
9035
+ SVGAnimatedNumber: C,
9036
+ SVGAnimatedNumberList: C,
9037
+ SVGAnimatedPreserveAspectRatio: C,
9038
+ SVGAnimatedRect: C,
9039
+ SVGAnimatedString: C,
9040
+ SVGAnimatedTransformList: C,
9041
+ SVGAnimateElement: C,
9042
+ SVGAnimateMotionElement: C,
9043
+ SVGAnimateTransformElement: C,
9044
+ SVGAnimationElement: C,
9045
+ SVGCircleElement: C,
9046
+ SVGClipPathElement: C,
9047
+ SVGComponentTransferFunctionElement: C,
9048
+ SVGDefsElement: C,
9049
+ SVGDescElement: C,
9050
+ SVGDiscardElement: C,
9051
+ SVGElement: C,
9052
+ SVGEllipseElement: C,
9053
+ SVGFEBlendElement: C,
9054
+ SVGFEColorMatrixElement: C,
9055
+ SVGFEComponentTransferElement: C,
9056
+ SVGFECompositeElement: C,
9057
+ SVGFEConvolveMatrixElement: C,
9058
+ SVGFEDiffuseLightingElement: C,
9059
+ SVGFEDisplacementMapElement: C,
9060
+ SVGFEDistantLightElement: C,
9061
+ SVGFEDropShadowElement: C,
9062
+ SVGFEFloodElement: C,
9063
+ SVGFEFuncAElement: C,
9064
+ SVGFEFuncBElement: C,
9065
+ SVGFEFuncGElement: C,
9066
+ SVGFEFuncRElement: C,
9067
+ SVGFEGaussianBlurElement: C,
9068
+ SVGFEImageElement: C,
9069
+ SVGFEMergeElement: C,
9070
+ SVGFEMergeNodeElement: C,
9071
+ SVGFEMorphologyElement: C,
9072
+ SVGFEOffsetElement: C,
9073
+ SVGFEPointLightElement: C,
9074
+ SVGFESpecularLightingElement: C,
9075
+ SVGFESpotLightElement: C,
9076
+ SVGFETileElement: C,
9077
+ SVGFETurbulenceElement: C,
9078
+ SVGFilterElement: C,
9079
+ SVGForeignObjectElement: C,
9080
+ SVGGElement: C,
9081
+ SVGGeometryElement: C,
9082
+ SVGGradientElement: C,
9083
+ SVGGraphicsElement: C,
9084
+ SVGImageElement: C,
9085
+ SVGLength: C,
9086
+ SVGLengthList: C,
9087
+ SVGLinearGradientElement: C,
9088
+ SVGLineElement: C,
9089
+ SVGMarkerElement: C,
9090
+ SVGMaskElement: C,
9091
+ SVGMatrix: C,
9092
+ SVGMetadataElement: C,
9093
+ SVGMPathElement: C,
9094
+ SVGNumber: C,
9095
+ SVGNumberList: C,
9096
+ SVGPathElement: C,
9097
+ SVGPatternElement: C,
9098
+ SVGPoint: C,
9099
+ SVGPointList: C,
9100
+ SVGPolygonElement: C,
9101
+ SVGPolylineElement: C,
9102
+ SVGPreserveAspectRatio: C,
9103
+ SVGRadialGradientElement: C,
9104
+ SVGRect: C,
9105
+ SVGRectElement: C,
9106
+ SVGScriptElement: C,
9107
+ SVGSetElement: C,
9108
+ SVGStopElement: C,
9109
+ SVGStringList: C,
9110
+ SVGStyleElement: C,
9111
+ SVGSVGElement: C,
9112
+ SVGSwitchElement: C,
9113
+ SVGSymbolElement: C,
9114
+ SVGTextContentElement: C,
9115
+ SVGTextElement: C,
9116
+ SVGTextPathElement: C,
9117
+ SVGTextPositioningElement: C,
9118
+ SVGTitleElement: C,
9119
+ SVGTransform: C,
9120
+ SVGTransformList: C,
9121
+ SVGTSpanElement: C,
9122
+ SVGUnitTypes: C,
9123
+ SVGUseElement: C,
9124
+ SVGViewElement: C,
9125
+ TaskAttributionTiming: C,
9126
+ Text: C,
9127
+ TextEvent: C,
9128
+ TextMetrics: C,
9129
+ TextTrack: C,
9130
+ TextTrackCue: C,
9131
+ TextTrackCueList: C,
9132
+ TextTrackList: C,
9133
+ TimeRanges: C,
9134
+ toolbar: O,
9135
+ top: O,
9136
+ Touch: C,
9137
+ TouchEvent: C,
9138
+ TouchList: C,
9139
+ TrackEvent: C,
9140
+ TransitionEvent: C,
9141
+ TreeWalker: C,
9142
+ UIEvent: C,
9143
+ ValidityState: C,
9144
+ visualViewport: O,
9145
+ VisualViewport: C,
9146
+ VTTCue: C,
9147
+ WaveShaperNode: C,
9148
+ WebAssembly: O,
9149
+ WebGL2RenderingContext: C,
9150
+ WebGLActiveInfo: C,
9151
+ WebGLBuffer: C,
9152
+ WebGLContextEvent: C,
9153
+ WebGLFramebuffer: C,
9154
+ WebGLProgram: C,
9155
+ WebGLQuery: C,
9156
+ WebGLRenderbuffer: C,
9157
+ WebGLRenderingContext: C,
9158
+ WebGLSampler: C,
9159
+ WebGLShader: C,
9160
+ WebGLShaderPrecisionFormat: C,
9161
+ WebGLSync: C,
9162
+ WebGLTexture: C,
9163
+ WebGLTransformFeedback: C,
9164
+ WebGLUniformLocation: C,
9165
+ WebGLVertexArrayObject: C,
9166
+ WebSocket: C,
9167
+ WheelEvent: C,
9168
+ Window: C,
9169
+ Worker: C,
9170
+ WritableStream: C,
9171
+ XMLDocument: C,
9172
+ XMLHttpRequest: C,
9173
+ XMLHttpRequestEventTarget: C,
9174
+ XMLHttpRequestUpload: C,
9175
+ XMLSerializer: C,
9176
+ XPathEvaluator: C,
9177
+ XPathExpression: C,
9178
+ XPathResult: C,
9179
+ XSLTProcessor: C
8586
9180
  };
8587
9181
  for (const global of ['window', 'global', 'self', 'globalThis']) {
8588
9182
  knownGlobals[global] = knownGlobals;
@@ -8610,7 +9204,6 @@ function isGlobalMember(path) {
8610
9204
  }
8611
9205
  return getGlobalAtPath(path.slice(0, -1)) !== null;
8612
9206
  }
8613
- // TODO add others to this list from https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects
8614
9207
 
8615
9208
  class GlobalVariable extends Variable {
8616
9209
  hasEffectsWhenAccessedAtPath(path) {
@@ -12685,6 +13278,8 @@ class UnaryExpression extends NodeBase {
12685
13278
  return unaryOperators[this.operator](argumentValue);
12686
13279
  }
12687
13280
  hasEffects(options) {
13281
+ if (this.operator === 'typeof' && this.argument instanceof Identifier$1)
13282
+ return false;
12688
13283
  return (this.argument.hasEffects(options) ||
12689
13284
  (this.operator === 'delete' &&
12690
13285
  this.argument.hasEffectsWhenAssignedAtPath(EMPTY_PATH, options)));
@@ -17643,6 +18238,13 @@ function rollup(rawInputOptions) {
17643
18238
  throw error;
17644
18239
  }
17645
18240
  yield graph.pluginDriver.hookSeq('generateBundle', [outputOptions, outputBundle, isWrite]);
18241
+ for (const key of Object.keys(outputBundle)) {
18242
+ const file = outputBundle[key];
18243
+ if (!file.type) {
18244
+ graph.warnDeprecation('A plugin is directly adding properties to the bundle object in the "generateBundle" hook. This is deprecated and will be removed in a future Rollup version, please use "this.emitFile" instead.', false);
18245
+ file.type = 'asset';
18246
+ }
18247
+ }
17646
18248
  graph.pluginDriver.finaliseAssets();
17647
18249
  timeEnd('GENERATE', 1);
17648
18250
  return outputBundle;
@@ -21093,7 +21695,7 @@ class Task {
21093
21695
  if (isTransformDependency) {
21094
21696
  for (const module of this.cache.modules) {
21095
21697
  if (module.transformDependencies.indexOf(id) === -1)
21096
- return;
21698
+ continue;
21097
21699
  // effective invalidation
21098
21700
  module.originalCode = null;
21099
21701
  }