Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

shairez
Copy link
Contributor

@shairez shairez commented Oct 10, 2025

PR Checklist

Recently, I've made buildable libs available for vitest in Nx (to improve testing speed in large nx monorepos)

In order to be able to have the angular compiler work with the tsconfig generated by Nx (with the paths pointing to the dist/ folder), a more dynamic way to get the tsconfig path is needed in the angular-vite plugin.

What is the new behavior?

My change is simple, it allows the user to either provide a string (like the current implementation) or to provide a getter function.

That way, during the angular compilation, once Nx already generated the "dist" tsconfig, we can make sure that generated tsconfig path is being passed to the performCompilation function, and by that the angular compiler could use the already built libs paths (because the getter runs dynamically and not only when configuring the plugin)

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

[optional] What gif best describes this PR or how it makes you feel?

@netlify
Copy link

netlify bot commented Oct 10, 2025

Deploy Preview for analog-blog ready!

Name Link
🔨 Latest commit e428dde
🔍 Latest deploy log https://app.netlify.com/projects/analog-blog/deploys/68e906dad5d11d0008119301
😎 Deploy Preview https://deploy-preview-1892--analog-blog.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify
Copy link

netlify bot commented Oct 10, 2025

Deploy Preview for analog-docs ready!

Name Link
🔨 Latest commit e428dde
🔍 Latest deploy log https://app.netlify.com/projects/analog-docs/deploys/68e906dacd68030008bb9b07
😎 Deploy Preview https://deploy-preview-1892--analog-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify
Copy link

netlify bot commented Oct 10, 2025

Deploy Preview for analog-app ready!

Name Link
🔨 Latest commit e428dde
🔍 Latest deploy log https://app.netlify.com/projects/analog-app/deploys/68e906da2522250008c07dbb
😎 Deploy Preview https://deploy-preview-1892--analog-app.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@shairez
Copy link
Contributor Author

shairez commented Oct 10, 2025

working on fixing the tests now

@shairez
Copy link
Contributor Author

shairez commented Oct 10, 2025

@brandonroberts it's not as clean as I hoped for, but there's an issue I tried to avoid.

The Nx plugin is generating the tsconfig during the configResolved hook.

So I needed to find a way to resolved the tsconfig twice, both in config and in configResolved.

It's not pretty looking, but maybe you have a different idea on how to solve it in a cleaner way.
If so, I'd be happy to make the changes.

@brandonroberts brandonroberts changed the title feat(vite-plugin-angular): add tsconfig getter feat(vite-plugin-angular): add support for tsconfig as getter function Oct 10, 2025
@brandonroberts brandonroberts merged commit 6411a7c into analogjs:beta Oct 11, 2025
18 checks passed
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.

2 participants