Constructor examples with extensions

Several examples show EditorView as taking extensions in its top-level config, such as this one:
https://codemirror.net/examples/bundle/
And the front page example:
https://codemirror.net/demo.js

However, the reference shows extensions in the state:
https://codemirror.net/docs/ref/
And the EditorView reference doesn’t mention extensions, I believe.

Are those first two examples just outdated, or are both options?
I can send PRs to update if that’s helpful.

Both styles work—the one where state options are passed directly to EditorView was only recently added (in release 6.0), so not all code uses it. I’ll update the reference guide example.