improve path resolution by adding '/*' to paths config

This commit is contained in:
Nacho Codoñer
2025-09-18 09:04:33 +02:00
parent 9a020d3a3f
commit bf99903614

View File

@@ -52,7 +52,7 @@ function createSwcConfig({
const defaultConfig = {
jsc: {
baseUrl: process.cwd(),
paths: { '/*': ['*'] },
paths: { '/*': ['*', '/*'] },
parser: {
syntax: isTypescriptEnabled ? 'typescript' : 'ecmascript',
...(isTsxEnabled && { tsx: true }),