Skip to content

How to include browser-action in a CommonJS preload script? #173

@Anutim

Description

@Anutim

Hey, this is probably a dumb question, but I can't figure it out.

I'm trying to get the browser-action-list into my UI, but am struggling.
This just says the module can't be found:
const { injectBrowserAction } = require('electron-chrome-extensions/browser-action');

Tried manually setting the path as well, but I still get the same error.
I am using just regular JS, and have no intention of building the app, just running it with Electron binaries. So I thought to use CommonJS as I assume you wouldn't need something like webpack then.

Sorry for opening an issue on this, but could really use the help!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions