Skip to content

Commit

Permalink
fix: resolve .vue files
Browse files Browse the repository at this point in the history
closes #195
  • Loading branch information
sxzz committed Sep 16, 2024
1 parent e45d31e commit 47ad648
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/tsconfck/src/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ const NATIVE_SEP_RE = new RegExp('\\' + path.sep, 'g');
/** @type {Map<string,RegExp>}*/
const PATTERN_REGEX_CACHE = new Map();
const GLOB_ALL_PATTERN = `**/*`;
const TS_EXTENSIONS = ['.ts', '.tsx', '.mts', '.cts'];
const VUE_EXTENSION = '.vue';
const TS_EXTENSIONS = ['.ts', '.tsx', '.mts', '.cts', VUE_EXTENSION];
const JS_EXTENSIONS = ['.js', '.jsx', '.mjs', '.cjs'];
const TSJS_EXTENSIONS = TS_EXTENSIONS.concat(JS_EXTENSIONS);
const TS_EXTENSIONS_RE_GROUP = `\\.(?:${TS_EXTENSIONS.map((ext) => ext.substring(1)).join('|')})`;
Expand Down

0 comments on commit 47ad648

Please sign in to comment.