We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6ac0779 commit ffab346Copy full SHA for ffab346
playgrounds/sandbox/run.js
@@ -48,12 +48,12 @@ for (const generate of /** @type {const} */ (['client', 'server'])) {
48
49
fs.writeFileSync(`${cwd}/output/${file}.json`, JSON.stringify(ast, null, '\t'));
50
51
- // try {
52
- // const migrated = migrate(source);
53
- // fs.writeFileSync(`${cwd}/output/${file}.migrated.svelte`, migrated.code);
54
- // } catch (e) {
55
- // console.warn(`Error migrating ${file}`, e);
56
- // }
+ try {
+ const migrated = migrate(source);
+ fs.writeFileSync(`${cwd}/output/${file}.migrated.svelte`, migrated.code);
+ } catch (e) {
+ console.warn(`Error migrating ${file}`, e);
+ }
57
}
58
59
const compiled = compile(source, {
0 commit comments