You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So I was making a chrome extension which use vite to bundle a function to inject a component to the existing DOM of Gmail
If I turn off minify in vite.config.js by minify: off the code work fine but I need it to avoid naming conflict and reverse-engineering. I try building my app with webpack and things worked too.
pnpm install
pnpm run -F gmail-button-vite-app build
pnpm run -F gmail-button-vite-app preview
Load unpacked extension in any chromium-based browser
Go to https://gmail.com
You should see the error in the console in the middle of a bunch of "Adding button" log
Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to vuejs/core instead.
Describe the bug
So I was making a chrome extension which use vite to bundle a function to inject a component to the existing DOM of Gmail
If I turn off minify in vite.config.js by
minify: off
the code work fine but I need it to avoid naming conflict and reverse-engineering. I try building my app with webpack and things worked too.The error was
Here's my branch, the sub-repo is gmail-button-vite-app: https://github.com/coolcorexix/mond/tree/test-new-saleshood-extension
Reproduction
https://github.com/coolcorexix/mond/tree/test-new-saleshood-extension
Steps to reproduce
Get static file ready
Load unpacked extension in any chromium-based browser
Go to https://gmail.com
You should see the error in the console in the middle of a bunch of "Adding button" log
System Info
Used Package Manager
pnpm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: