Skip to content

Commit

Permalink
add svelte file extension (#29)
Browse files Browse the repository at this point in the history
* add svelte file extension
  • Loading branch information
jurijzahn8019 authored Apr 9, 2024
1 parent d91b9ff commit 4a39bbf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/few-spiders-crash.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@ssrx/vite': patch
---

add svelte files to runtime regex
2 changes: 1 addition & 1 deletion packages/vite/src/helpers/vite.ts
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ const ASSET_REGEXES = {
cssModules: /\.module\.(css|less|sass|scss|styl|stylus|pcss|postcss|sss)(?:$|\?)/,
external: /\/(node_modules|inc)\/.*/,
static: /\.(txt|ico|svg|webp|png|jpg|jpeg|gif|mp3)$/,
runtime: /\.(js|ts|tsx|jsx)$/,
runtime: /\.(js|ts|tsx|jsx|svelte)$/,

// Vite plugins generally use `/@xyz/...` as the prefix for their assets
// SOME vite plugins, however, use a nul character \0, for example this one:
Expand Down

0 comments on commit 4a39bbf

Please sign in to comment.