File tree Expand file tree Collapse file tree 1 file changed +0
-3
lines changed
packages/migrate/migrations/self-closing-tags Expand file tree Collapse file tree 1 file changed +0
-3
lines changed Original file line number Diff line number Diff line change @@ -3,8 +3,6 @@ import fs from 'node:fs';
33import prompts from 'prompts' ;
44import glob from 'tiny-glob/sync.js' ;
55import { 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
97export 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 }
You can’t perform that action at this time.
0 commit comments