1const path = require('path');
2module.exports = {
3 ...other settings....,
4
5 webpackFinal: async (config) => {
6 config.resolve.modules = [
7 ...(config.resolve.modules || []),
8 path.resolve(__dirname, "../src"),
9 ];
10
11 return config;
12 },
13
14}
15
16// Then add this in your tsconfig.json/jsconfig.json
17{
18......
19 "compilerOptions": {
20 .....
21 "baseUrl": "./src"
22 }
23}
24
1const path = require('path');
2
3module.exports = {
4 ...other settings....,
5
6 webpackFinal: async (config) => {
7 config.resolve.modules = [
8 ...(config.resolve.modules || []),
9 path.resolve(__dirname, "../src"),
10 ];
11
12 return config;
13 },
14
15}
16