rollup-plugin-typescript-paths

Rollup Plugin to automatically resolve path aliases set in the compilerOptions section of tsconfig.json.

MIT License

Downloads
139.4K
Stars
44
Committers
5
rollup-plugin-typescript-paths - v1.5.0 Latest Release

Published by simonhaenisch 10 months ago

What's Changed

New Contributors

Full Changelog: https://github.com/simonhaenisch/rollup-plugin-typescript-paths/compare/v1.4.0...v1.5.0

rollup-plugin-typescript-paths - 1.4.0

Published by simonhaenisch about 2 years ago

A new option nonRelative was added, that if enabled, resolves non-relative paths based on tsconfig's baseUrl, even if none of the paths are matched. It's opt-in (i.e. defaults to false) to maintain backwards-compatibility.

For more details see #12.

rollup-plugin-typescript-paths - 1.3.1

Published by simonhaenisch over 2 years ago

Fixes accidental incorrect module resolution by this plugin, that would happen when an import was relative but a path alias was partially matching it, because the regex for the match was missing the caret. See #10 for details.

rollup-plugin-typescript-paths - 1.3.0

Published by simonhaenisch over 3 years ago

Added a new preserveExtensions option for use with sucrase (and potentially other build tools). See PR #9.

Thanks @Benjozork for the contribution! 🎉

rollup-plugin-typescript-paths - 1.2.3

Published by simonhaenisch over 3 years ago

Fixed an issue with comments in tsconfig.json (see #7).

rollup-plugin-typescript-paths - 1.2.2

Published by simonhaenisch over 4 years ago

  • fix: resolveId importer is optional (#3)

Thanks to @AndrewLeedham for the PR!

rollup-plugin-typescript-paths - 1.2.1

Published by simonhaenisch over 4 years ago

Rename the export to match the rollup naming convention (#1).

Thanks to @juliendargelos for the PR!

rollup-plugin-typescript-paths - 1.2.0

Published by simonhaenisch over 4 years ago

feat: add transform hook
fix: resolve as js path instead of ts

rollup-plugin-typescript-paths - 1.1.1

Published by simonhaenisch over 5 years ago

  • fix: skip virtual modules
rollup-plugin-typescript-paths - 1.1.0

Published by simonhaenisch over 5 years ago

  • feat: support wildcards
rollup-plugin-typescript-paths - 1.0.0

Published by simonhaenisch over 5 years ago

Initial version.