-
Notifications
You must be signed in to change notification settings - Fork 25.3k
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
I believe package @angular/forms should depend on package rxjs #17917
Comments
Meanwhile, bundlers like Webpack have no idea what's listed in the |
Mmmm... that makes sense, because we are not processing I know about the other bundlers but our case is different because we are not creating a single JS file as I said: we must resolve modules during runtime with the help of an AMD loader and for that we need to scan We don't know in advance how modules are going to be resolved because anyone can deploy/undeploy any package in the server in any moment. Also, we need to support portlets, which are modular and must cooperate between them even without knowing each other. It's a more complex architecture than a single webapp 😅. |
BTW, thanks for the prompt response :-) |
Hi @izaera , the semantic of You could send request to that package owner to add BTW, it's normally impossible for front-end library to use |
@trotyl I see. In this case the package depending on The fact that we are not writing a pure bundler (due to the fact that we are not bundling an application but a For example, as you said, it doesn't make sense to have several versions of a package for a single app, but in our scenario it does, because one Anyway, I think we can close this issue as it is clear that my original request was incorrect and it doesn't make sense to add the dependency to Thanks a lot. This conversation has been very useful to me :-). |
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. |
I'm submitting a ...
Current behavior
Currently the module
@angular/forms/bundles/forms.umd
is depending on'rxjs/observable/forkJoin', 'rxjs/observable/fromPromise', 'rxjs/operator/map'
in its AMDdefine
call. However, itspackage.json
dependencies
section is empty which is incorrect.Expected behavior
I think that it is not failing now because, in the end, everything is bundled in the correct order and the correct
rxjs
version is found, but still the dependencies declaration is incomplete.What is the motivation / use case for changing the behavior?
I'm developing an NPM bundler (a la browserify or webpack) for Liferay Portal and we need to rely on
package.json
dependencies
being declared correctly, otherwise it doesn't work because we resolve dependencies in the very last moment: when the page is rendered.Would it be possible to add such dependency without breaking anything? I can send a pull request if it is necessary :-).
The text was updated successfully, but these errors were encountered: