-
Notifications
You must be signed in to change notification settings - Fork 11.9k
Closed
Labels
needs: more infoReporter must clarify the issueReporter must clarify the issue
Description
Goal
So I'm trying to apply a typescript transform to angular files BEFORE the webpack plugin AngularCompilerPlugin touches them.
Problems
- It seems that the webpack loader
@ngtools/webpackignores all previous loaders (The @ngtools/webpack loader does not fully support loader chaining) as mentioned in this comment - It seems that the
AngularCompilerPlugindirectly touches the filesystem instead of using webpack's virtual filesystem as explained in this comment - It seems custom typescript transforms are not on the road map 😞 Support custom TypeScript transformers angular#22434 (comment)
Possible Solution
- In a few blog posts and tutorials I've seen (like this one), it seems like I might be able to use the
AngularCompilerPlugin's private api_transformersor_platformTransformers, but adding a transformer doesn't seem to transform the typescript BEFORE theAngularCompilerPluginprocesses the typescript.
Does anyone have any suggestions? Is this even possible?
Lastly big thanks to all the contributors! 👍
Related Issues
- Support custom TypeScript transformers Angular 13: Add ability to generate esm5 bundle #22434
- Add possibility to use webpack with an alternative file system Add possibility to use webpack with an alternative file system #9089
- @ngtools/webpack: Misleading documentation & Config Refactor Proposal @ngtools/webpack: Misleading documentation & Config Refactor Proposal #9063
- Angular CLI does not apply custom webpack loader Angular CLI does not apply custom webpack loader #18474
- Ordering issue between @ngtools/webpack + other loader Ordering issue between @ngtools/webpack + other loader #16544
- Custom typescript transformer source file changes are not applied Custom typescript transformer source file changes are not applied #16250
Metadata
Metadata
Assignees
Labels
needs: more infoReporter must clarify the issueReporter must clarify the issue