-
Notifications
You must be signed in to change notification settings - Fork 12k
feat(@ngtools/webpack): Allows to keep the decorators in AOT production #12179
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
it is an old feature that can only be hacked based on |
@p3x-robot can you provide a simple repro that shows the usecase for this change? I remember in the past I saw a repro from you, but I think it was a big application, which makes it harder to understand. If you can provide a simple repro it's easier to understand and could even be used for a regression test. Without a regression test there's no guarantee that the changes in this PR will continue to work in the future. |
there is only like 3 stars on the gist, but for other people are having this error: |
if it is a big problem of adding an option to the @ngtools/webpack, i can live with the gist, so no problem, this is the 3rd time i tried to add an option that has no side effects at all, so i will not try to do it 4th time, thanks very much. |
It's not just a matter of adding an " an option that has no side effects at all". After it's added, it's part of our features and we need to maintain it. So we need to understand the problem and add tests for this scenario. Ok, I understand the error is this one:
How can I reproduce the error and debug it myself? Can you make a simple reproduction, with the minimum of code, that triggers this error? |
are you are linux/bsd or windows? i create the simplest steps i can create given, it is an connected system (builder - for webpack latest stable and angular latest stable => create libs => create an angular app). |
I am on Windows. |
git clone https://github.com/patrikx3/corifeus-builder-angular
npm install
grunt aot --disable-ng-aot-hack This is to trigger this error. https://github.com/patrikx3/corifeus-builder-angular/tree/master/src/config/webpack/angular this is the webpack ng6 solution: if i disable with decorators as here
I know many other guys are having an issue with this, there are less stars , than how many they actually use it at https://gist.github.com/p3x-robot/e12ed76acb7033638b4179149546bb73 |
I'm sorry but that is the big application that I mentioned in #12179 (comment). That's too big to be a simple reproduction of the problem and I don't have the time to debug your project. If you make something simpler, like a simple webpack config with the minimum number of plugins/loaders, that builds a simple 1 component app, I can try and debug and see whats wrong. You can read here why this is needed. |
this is not a problem at all, i use this hack by removing the decorators, so i just close it for you, take care |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
No description provided.