This introduces a minimal set of changes to begin using rollup to bundle `pyodide.js`. Once this is merged, I will introduce more PRs to gradually split `pyodide.js` into several files as in #1559.
Use rollup. This introduces a minimal set of changes to begin using rollup to bundle `pyodide.js`. Once this is merged, I will introduce more PRs to gradually split `pyodide.js` into several files as in #1559.
# Python API

Backward compatibility of the API is not guaranteed at this point.

**Javascript Modules**

By default there are two Javascript modules. More can be added with
{any}`pyodide.registerJsModule`. You can import these modules using the Python
``import`` statement in the normal way.

```{eval-rst}
.. list-table::

   *  - ``js``
      - The global Javascript scope.
   *  - :js:mod:`pyodide_js <pyodide>`
      - The Javascript Pyodide module.
```

```{eval-rst}
.. currentmodule:: pyodide

.. automodule:: pyodide
   :members:
   :autosummary:
   :autosummary-no-nesting:
```

# Python API

Backward compatibility of the API is not guaranteed at this point.

**Javascript Modules**

By default there are two Javascript modules. More can be added with
{any}`pyodide.registerJsModule`. You can import these modules using the Python
``import`` statement in the normal way.

```{eval-rst}
.. list-table::

   *  - ``js``
      - The global Javascript scope.
   *  - :js:mod:`pyodide_js <pyodide>`
      - The Javascript Pyodide module.
```

```{eval-rst}
.. currentmodule:: pyodide

.. automodule:: pyodide
   :members:
   :autosummary:
   :autosummary-no-nesting:
```
