Skip to content

Commit cd79807

Browse files
authored
feat: provide migration function (#11334)
Provides a migration function, exported as `migrate` from `svelte/compiler`, which tries its best to automatically migrate towards runes, render tags (instead of slots) and event attributes (instead of event handlers) The preview REPL was updated with a migrate button so people can try it out in the playground. closes #9239
1 parent f1986da commit cd79807

File tree

32 files changed

+1169
-3
lines changed

32 files changed

+1169
-3
lines changed

.changeset/orange-zoos-heal.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"svelte": patch
3+
---
4+
5+
feat: provide migration helper

packages/svelte/src/compiler/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,5 +190,5 @@ export function walk() {
190190
}
191191

192192
export { CompileError } from './errors.js';
193-
194193
export { VERSION } from '../version.js';
194+
export { migrate } from './migrate/index.js';

0 commit comments

Comments
 (0)