Previously, we had a folder containing various typescript modules. However, we have now transformed that folder into a package.
An issue arises with the existing code, as it uses webpack aliases for that particular folder. I am attempting to have those aliases point to the designated node_modules folder instead, but unfortunately, it is not functioning as expected.
alias: {
x: path.resolve(__dirname, "node_modules/y")
z: path.resolve(__dirname, "node_modules/y/z")
}
Is this approach correct?
UPDATE: This method does indeed work. The problem was TypeScript still raising errors, which were resolved by adding the aliases to tsconfig as well.