Skip to content

Commit ef9ef49

Browse files
committed
tidy up
1 parent 984b87c commit ef9ef49

File tree

1 file changed

+0
-3
lines changed
  • packages/migrate/migrations/self-closing-tags

1 file changed

+0
-3
lines changed

packages/migrate/migrations/self-closing-tags/index.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ import fs from 'node:fs';
33
import prompts from 'prompts';
44
import glob from 'tiny-glob/sync.js';
55
import { remove_self_closing_tags } from './migrate.js';
6-
// import { update_js_file, update_svelte_file } from '../../utils.js';
7-
// import { transform_code, transform_svelte_code } from './migrate.js';
86

97
export async function migrate() {
108
console.log(
@@ -27,7 +25,6 @@ export async function migrate() {
2725
.filter((file) => !file.includes('/node_modules/'));
2826

2927
for (const file of files) {
30-
// replace all occurrences of e.g. `<div />` with `<div></div>`, preserving attributes etc
3128
const code = remove_self_closing_tags(fs.readFileSync(file, 'utf-8'));
3229
fs.writeFileSync(file, code);
3330
}

0 commit comments

Comments
 (0)