Skip to content

feat!: Require a function for vite configuration - #121

Merged
aklinker1 merged 5 commits into
mainfrom
vite-fn-only
Sep 22, 2023
Merged

aklinker1 merged 5 commits into
mainfrom
vite-fn-only

Conversation

@aklinker1

Copy link
Copy Markdown
Member

When migrating one of my large chrome extensions to WXT, I noticed lots of weird behavior when running it in dev mode. In particular, vue was failing to rebuild content script SFCs. This lead me to believe that Vite can't reuse the Vue plugin for both the dev server HTML pages and the library mode background/content scripts.

I released 0.6.0-alpha1, which creates new plugins for every vite build, and that seemed to do the trick! There must be some internal state that breaks when the plugin is reused.

@netlify

netlify Bot commented Sep 22, 2023 •

Copy link
Copy Markdown

✅ Deploy Preview for creative-fairy-df92c4 ready!

Name Link
🔨 Latest commit ab2610c
🔍 Latest deploy log https://app.netlify.com/sites/creative-fairy-df92c4/deploys/650dc2ebedf70600088f769d
😎 Deploy Preview https://deploy-preview-121--creative-fairy-df92c4.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@aklinker1

aklinker1 commented Sep 22, 2023 •

Copy link
Copy Markdown
Member Author

Not updating templates until this is published. See #122

Edit: Nevermind, accepting a function is valid in 0.5, so I'll just update them here.

@aklinker1
aklinker1 marked this pull request as ready for review September 22, 2023 16:40
@aklinker1
aklinker1 merged commit 07891d0 into main Sep 22, 2023
@aklinker1
aklinker1 deleted the vite-fn-only branch September 22, 2023 16:51
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

Successfully merging this pull request may close these issues.

1 participant