Lib/browser and src/browser

In the hello world example extension workspace generated by Yeoman, the hello-world javascript modules are in a directory called lib/browser and src/browser

Yet, the extension is not specific to the browser execution environment. It’s equally relevant for the electron environment. So I’m curious…why is “browser” in the name. Some convention in a dependency (e.g., InversifyJS) that has to be followed? A goof? Just trying to understand, not nit pick.

@jcortell browser is where frontend code lives, it has access to browser apis.

1 Like

Gotchya. Makes sense. That link helped a lot. Thanks