Skip to content

Conversation

@DenysKuchma
Copy link
Collaborator

Summary

Fixes #5361 - TypeScript path aliases now work in CodeceptJS 4.x

Changes

  • Added tsconfig-paths dependency
  • Modified lib/utils/typescript.js to load tsconfig.json and resolve path aliases
  • Path aliases like #config/* are now converted to real paths during transpilation

What was broken

In CodeceptJS 4.x, imports like import { X } from '#config/urls' would fail because the custom transpiler didn't resolve aliases from tsconfig.json.

What works now

  • Path aliases with any prefix (#config/*, @config/*, etc.)
  • Backward compatibility with relative imports
  • All external modules continue to work

@DenysKuchma DenysKuchma requested a review from DavertMik January 8, 2026 21:23
@DenysKuchma DenysKuchma closed this Jan 9, 2026
@DenysKuchma DenysKuchma deleted the bugfix/typescript-path-aliases branch January 9, 2026 16:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants