Skip to content

Commit

Permalink
fix(core): detect dependencies in .cjs and .cts files (#19127)
Browse files Browse the repository at this point in the history
  • Loading branch information
jaysoo authored Sep 12, 2023
1 parent fdbf000 commit 17767cf
Showing 1 changed file with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,16 @@ export function buildExplicitTypeScriptDependencies(

const filesToProcess: Record<string, string[]> = {};

const moduleExtensions = ['.ts', '.js', '.tsx', '.jsx', '.mts', '.mjs'];
const moduleExtensions = [
'.ts',
'.js',
'.tsx',
'.jsx',
'.mts',
'.mjs',
'.cjs',
'.cts',
];

// TODO: This can be removed when vue is stable
if (isVuePluginInstalled()) {
Expand Down

0 comments on commit 17767cf

Please sign in to comment.