Skip to content

Commit

Permalink
fix: alpine scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
florian-lefebvre committed Jan 21, 2025
1 parent 8911bda commit 7f13f12
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/popular-spies-compete.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@astrojs/alpinejs': patch
---

temp
2 changes: 1 addition & 1 deletion packages/integrations/alpinejs/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export default function createPlugin(options?: Options): AstroIntegration {
import { setup } from 'virtual:@astrojs/alpinejs/entrypoint';
setup(Alpine);
window.Alpine = Alpine;
Alpine.start();`,
document.addEventListener('DOMContentLoaded', () => Alpine.start());`,
);
updateConfig({
vite: {
Expand Down

0 comments on commit 7f13f12

Please sign in to comment.