Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can we modify this for people not using webpack or node? #15

Open
benlieb opened this issue Oct 22, 2024 · 0 comments
Open

How can we modify this for people not using webpack or node? #15

benlieb opened this issue Oct 22, 2024 · 0 comments

Comments

@benlieb
Copy link

benlieb commented Oct 22, 2024

I'm using esbuild, and requiring the node process seems unnecessary.

I piggy-backed on your utils files and am using this

const manifest = chrome.runtime.getManifest()

// When you load an extension directly from a local directory(unpacked), the manifest 
// file doesn't have a valid update_url as it's not meant to be updated through the store.
// use this as a proxy to determine if the extension is in development mode
export const isDev = !!!manifest.update_url
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant