When utilizing webpack, it is possible to write the configuration file using TypeScript. However, it is crucial to ensure that any alias paths present in the config file are resolved to their mapped paths.
It should be noted that this pertains specifically to the file webpack.config.ts
, and not to other files with a .ts
extension.
The paths that are already defined in tsconfig.json function correctly with the tsc
command.
Even if you temporarily use the actual paths in the webpack.config.ts
file, issues may arise with alias paths that those real paths reference.
What is the correct procedure for implementing aliases in a webpack configuration file?