14 Matching Annotations
  1. Jun 2021
    1. The globalThis property provides a standard way of accessing the global this value (and hence the global object itself) across environments. Unlike similar properties such as window and self, it's guaranteed to work in window and non-window contexts. In this way, you can access the global object in a consistent manner without having to know which environment the code is being run in.
  2. Jan 2021
  3. Dec 2020
    1. Note that preload will run both on the server side and on the client side. It may therefore not reference any APIs only present in the browser.
  4. Nov 2020
  5. Oct 2020
  6. Sep 2020
    1. Some modules, like events or util, are built in to Node.js. If you want to include those (for example, so that your bundle runs in the browser), you may need to include rollup-plugin-node-polyfills.