{"library":"rollup-plugin-ts-paths","title":"rollup-plugin-ts-paths","description":"A Rollup plugin (v1.0.5) that resolves TypeScript path aliases defined in tsconfig.json to their actual file paths during bundling. It allows developers to use TypeScript's paths feature with Rollup, enabling clean imports like `import { Foo } from 'foo'` which maps to a source file path. The plugin is lightweight, has no external runtime dependencies, and must be placed before other Rollup plugins like commonjs to ensure correct resolution. However, it only supports the first entry in a paths array, and it is primarily useful for projects that first compile with tsc and then bundle with Rollup. The package ships TypeScript types and is maintained on GitHub.","language":"javascript","status":"active","last_verified":"Mon Apr 27","install":{"commands":["npm install rollup-plugin-ts-paths"],"cli":null},"imports":["import tsConfigPaths from 'rollup-plugin-ts-paths'","import type { Options } from 'rollup-plugin-ts-paths'"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"// rollup.config.js\nimport tsConfigPaths from 'rollup-plugin-ts-paths';\nimport commonjs from '@rollup/plugin-commonjs';\nimport { nodeResolve } from '@rollup/plugin-node-resolve';\n\nexport default {\n  input: 'src/index.ts',\n  output: {\n    dir: 'dist',\n    format: 'esm'\n  },\n  plugins: [\n    tsConfigPaths(),   // Must come before other resolvers\n    nodeResolve(),\n    commonjs()\n  ]\n}","lang":"typescript","description":"Basic Rollup config using rollup-plugin-ts-paths to resolve TypeScript path aliases, placed before nodeResolve and commonjs plugins.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}