dt-app
Version:
The Dynatrace App Toolkit is a tool you can use from your command line to create, develop, and deploy apps on your Dynatrace environment.
16 lines (15 loc) • 722 B
TypeScript
import type { Alias } from 'vite';
/**
* Reads tsconfig `paths` entries and converts them to Vite `resolve.alias` entries.
*
* On Windows, `vite-tsconfig-paths` incorrectly resolves bare module specifiers
* (e.g., `react/jsx-runtime`) through tsconfig `baseUrl`, because Vite's internal
* resolution returns non-null for non-existent absolute paths.
* Using `resolve.alias` for explicit path mappings avoids this issue while still
* supporting custom path aliases like `@my-app/shared`.
*/
export declare function resolveTsConfigAliases(tsConfigPath: string): Alias[];
/**
* Escapes special characters in a string for use in a regular expression.
*/
export declare function escapeRegExp(string: string): string;