1. 26 Oct, 2021 3 commits
  2. 25 Oct, 2021 10 commits
  3. 22 Oct, 2021 2 commits
  4. 20 Oct, 2021 1 commit
  5. 19 Oct, 2021 23 commits
  6. 18 Oct, 2021 1 commit
    • Robert Knight's avatar
      Load Rollup configs with `import(...)` · 1ebb79a2
      Robert Knight authored
      Convert the Rollup config files to have a `.mjs` extension so that Node
      can natively load them as ES modules and then load them using
      `import(...)` rather than the `loadConfigFile` helper.
      
      This avoids a deprecation warning when importing `rollup/dist/loadConfigFile`:
      
      ```
      (node:21339) [DEP0148] DeprecationWarning: Use of deprecated folder
      mapping "./dist/" in the "exports" field module ...
      ```
      
      This also makes the way the config file is loaded more transparent, since its
      just a regular dynamic import.
      
      The downside of this change is that we don't get a `warnings` object
      back to print warnings that occur during bundling.
      Instead have to pass an `onwarn` handler to `rollup.{rollup, watch}`.
      1ebb79a2