{"library":"rollup-plugin-tsc-alias","title":"rollup-plugin-tsc-alias","description":"A Rollup plugin that replaces TypeScript path aliases with relative paths after compilation using tsc-alias. Version 1.1.4 is the latest stable release. It integrates seamlessly into Rollup's build pipeline, reading aliases from tsconfig.json and rewriting import paths in the output bundle. Unlike manual path resolution, this plugin automates the mapping of TypeScript paths (e.g., @/components) to relative paths, ensuring compatibility with CommonJS and ESM output. It supports watch mode, custom config file paths, and options for declaration directories. The plugin is lightweight, with only Rollup as a peer dependency, and is actively maintained.","language":"javascript","status":"active","last_verified":"Mon Apr 27","install":{"commands":["npm install rollup-plugin-tsc-alias"],"cli":null},"imports":["import tscAlias from 'rollup-plugin-tsc-alias';","import tscAlias from 'rollup-plugin-tsc-alias';","import tscAlias from 'rollup-plugin-tsc-alias';"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"// rollup.config.js\nimport tscAlias from 'rollup-plugin-tsc-alias';\n\nexport default {\n  input: 'src/index.ts',\n  output: {\n    dir: 'dist',\n    format: 'esm',\n  },\n  plugins: [\n    tscAlias({\n      configFile: 'tsconfig.json',\n      watch: false,\n      outDir: undefined,\n      declarationDir: undefined,\n      resolveFullPaths: false,\n      verbose: false,\n    }),\n  ],\n};","lang":"javascript","description":"Basic Rollup configuration integrating rollup-plugin-tsc-alias to resolve TypeScript path aliases in ESM output.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}