Skip to content

Fix: Serve preview scripts as virtual modules for Vite processing - #83

Merged
berkandirim merged 1 commit into
adidas:masterfrom
berkandirim:master
Sep 18, 2026
Merged

berkandirim merged 1 commit into
adidas:masterfrom
berkandirim:master

Conversation

@berkandirim

Copy link
Copy Markdown
Member

The issue was that inline <script type="module"> tags with bare imports like 'react' aren't processed by Vite - only actual .js/.ts files are.

Changed to serve preview scripts at /@htmplar-preview/{template} so Vite can transform imports and apply optimizeDeps.

The issue was that inline <script type="module"> tags with bare imports
like 'react' aren't processed by Vite - only actual .js/.ts files are.

Changed to serve preview scripts at /@htmplar-preview/{template} so Vite
can transform imports and apply optimizeDeps.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@berkandirim
berkandirim merged commit 49eaa79 into adidas:master Sep 18, 2026
4 checks passed
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