// Create jsconfig.json in root
{
"compilerOptions": {
"baseUrl": "./",
"paths": {
"@components/*": ["components/*"],
"@root/*": ["./*"]
}
}
}
{
"compilerOptions": {
"baseUrl": ".",
"paths": {
"$libs": ["src/libs"],
"$libs/*": ["src/libs/*"],
}
},
"include": ["src/**/*.d.ts", "src/**/*.js", "src/**/*.svelte"],
"exclude": ["node_modules", "**/node_modules", "dist"]
}
const path = require('path');
module.exports = {
resolve: {
alias: {
'@': path.resolve('resources/js'),
'@Components': path.resolve('resources/js'/Components),
},
},
};