{"library":"rollup-plugin-tsconfig-paths","title":"rollup-plugin-tsconfig-paths","description":"A Rollup plugin that resolves TypeScript path aliases (e.g., \"~/*\") defined in tsconfig.json, enabling cleaner imports in bundled output. Current stable version is 1.5.2, released periodically with minor fixes. It supports Rollup 2, 3, and 4, and ships TypeScript types. Unlike alternatives like @rollup/plugin-alias, this plugin directly reads tsconfig paths, reducing configuration duplication. It can auto-detect tsconfig via TS_NODE_PROJECT env var or cwd search, and offers log level control.","language":"javascript","status":"active","last_verified":"Mon Apr 27","install":{"commands":["npm install rollup-plugin-tsconfig-paths"],"cli":null},"imports":["import tsConfigPaths from 'rollup-plugin-tsconfig-paths'","import type { RollupPluginTsconfigPathsOptions } from 'rollup-plugin-tsconfig-paths'","tsConfigPaths({ tsConfigPath: './tsconfig.app.json' })"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import tsConfigPaths from 'rollup-plugin-tsconfig-paths';\nimport nodeResolve from '@rollup/plugin-node-resolve';\nimport commonjs from '@rollup/plugin-commonjs';\n\n// tsconfig.json must have paths defined, e.g. \"~/*\": [\"./*\"]\nexport default {\n  input: 'src/index.ts',\n  plugins: [\n    tsConfigPaths({\n      tsConfigPath: './tsconfig.json',\n      logLevel: 'warn'\n    }),\n    nodeResolve({ extensions: ['.ts', '.js'] }),\n    commonjs()\n  ],\n  output: { file: 'dist/bundle.js', format: 'esm' }\n};","lang":"typescript","description":"Shows minimal Rollup config using the plugin with tsconfig path resolution and common plugin chaining.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}