Gist 526036a177c6d241f29073fad4622e19
✓ Published0🌍 Public
TTipTopCoder
Last edited Jan 14, 2020
Created on Jan 14, 2020
This example demonstrates a Node.js module-alias configuration that maps the "~" import prefix to the project's dist directory. The code uses the `module-alias` library’s `addAliases` method alongside the `path` module’s `resolve` function to establish the path mapping. It shows how to set up convenient absolute imports in a TypeScript project, with the alias rooted at `../dist` from the current file’s location. No data visualization is present; the snippet is purely a build-time import utility.
AI-generated description