Skip to content

Commit

Permalink
comment out extensions support
Browse files Browse the repository at this point in the history
  • Loading branch information
benmccann committed May 30, 2023
1 parent 9f75f9e commit a134b95
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions packages/migrate/migrations/svelte-4/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import colors from 'kleur';
import fs from 'node:fs';
import path from 'node:path';
import { pathToFileURL } from 'node:url';
import prompts from 'prompts';
import glob from 'tiny-glob/sync.js';
import { bail, check_git } from '../../utils.js';
Expand All @@ -27,12 +25,12 @@ export async function migrate() {
process.exit(1);
}

const { default: config } = fs.existsSync('svelte.config.js')
? await import(pathToFileURL(path.resolve('svelte.config.js')).href)
: { default: {} };
// const { default: config } = fs.existsSync('svelte.config.js')
// ? await import(pathToFileURL(path.resolve('svelte.config.js')).href)
// : { default: {} };

/** @type {string[]} */
const svelte_extensions = config.extensions ?? ['.svelte'];
const svelte_extensions = /* config.extensions ?? - disabled because it would break .svx */ ['.svelte'];
const extensions = [...svelte_extensions, '.ts', '.js'];
// TODO read tsconfig/jsconfig if available? src/** will be good for 99% of cases
const files = glob('src/**', { filesOnly: true, dot: true }).map((file) =>
Expand Down

0 comments on commit a134b95

Please sign in to comment.