-
-
Notifications
You must be signed in to change notification settings - Fork 115
refactor: modular plugins #1145
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
7cdc1df
wip: first steps
dominikg f02a174
wip: second day, getting a hang for it
dominikg bca41f2
fix: don't destructure api
dominikg 94ac814
mostly working, but hacky raw/direct need work
dominikg 01061c9
ensure hotUpdate returns non-svelte modules, cleanup
dominikg dc0019c
Merge branch 'main' into refactor/modular-plugins
dominikg fd8c291
Merge branch 'main' into refactor/modular-plugins
dominikg 04904c2
fix: load raw&svelte files ourselves to prevent vite asset middleware…
dominikg 04531a9
heureka
dominikg 7150c4c
fixes for rolldown: remove duplicate optimizer setup and use svelte5 …
dominikg 210ff7c
fix: add back .svelte optimizer extension, remove unused file
dominikg 40b8dab
chore: remove unused files & code
dominikg d700ff3
chore: add changesets
dominikg dfbc8e4
chore: add test for preprocessor transform order
dominikg a4553e1
chore: fix rolldown-vite
dominikg e0fe69b
fix again
dominikg e8089d3
docs: add section about vite-plugin-transforms for preprocessing svelte
dominikg 25ce39c
chore: deprecate plugin.api.sveltePreprocess
dominikg 941db5b
refactor: remove advanced raw queries
dominikg 3ba9fec
Merge branch 'main' into refactor/modular-plugins
dominikg 2e1fd8c
improve inspector plugin
dominikg afe81cc
chore: improve regex and documentation for code normalization in hotU…
dominikg File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@sveltejs/vite-plugin-svelte': major | ||
--- | ||
|
||
Remove experimental "advanced raw queries" feature. Basic `File.svelte?raw` is still supported. | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
'@sveltejs/vite-plugin-svelte-inspector': patch | ||
'@sveltejs/vite-plugin-svelte': patch | ||
--- | ||
|
||
use vite environment api internally |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@sveltejs/vite-plugin-svelte': major | ||
--- | ||
|
||
split preprocess and compile into separate plugins |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@sveltejs/vite-plugin-svelte': patch | ||
--- | ||
|
||
deprecate `plugin.api.sveltePreprocess` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,3 @@ | ||
import App from './App.svelte'; | ||
|
||
if (App.toString().startsWith('class ')) { | ||
new App({ target: document.body }); | ||
} else { | ||
import('svelte').then(({ mount }) => mount(App, { target: document.body })); | ||
} | ||
import { mount } from 'svelte'; | ||
mount(App, { target: document.body }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
console.log('default svelte config loaded'); | ||
export default {}; |
14 changes: 0 additions & 14 deletions
14
packages/e2e-tests/import-queries/__tests__/__snapshots__/svelte-5/preprocessed.txt
This file was deleted.
Oops, something went wrong.
14 changes: 0 additions & 14 deletions
14
packages/e2e-tests/import-queries/__tests__/__snapshots__/svelte-5/ssr-preprocessed.txt
This file was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
packages/e2e-tests/import-queries/__tests__/__snapshots__/svelte-5/style.txt
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.