typescript transform paths alias

The solution for “typescript transform paths alias” can be found here. The following code will assist you in solving the problem.

“compilerOptions”: {
“baseUrl”: “./”,
// Configure your path mapping here
“paths”: {
“@utils/*”: [“utils/*”]
// Note: To transform paths for both the output .js and .d.ts files, you need both of the below entries
“plugins”: [
// Transform paths in output .js files
{ “transform”: “typescript-transform-paths” },

// Transform paths in output .d.ts files (Include this line if you output declarations files)
{ “transform”: “typescript-transform-paths”, “afterDeclarations”: true }

Thank you for using DeclareCode; We hope you were able to resolve the issue.

More questions on [categories-list]

inline scripts encapsulated in