question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

cli6rc6 vendor.js duplicate some rxjs functions

See original GitHub issue

Versions

Angular CLI: 6.0.0-rc.6
Node: 10.0.0
OS: win32 x64
Angular: 6.0.0-rc.5
... common, compiler, compiler-cli, core, forms, http
... language-service, platform-browser, platform-browser-dynamic
... router

Package                           Version
-----------------------------------------------------------
@angular-devkit/architect         0.5.8
@angular-devkit/build-angular     0.5.9
@angular-devkit/build-optimizer   0.5.9
@angular-devkit/core              0.5.8
@angular-devkit/schematics        0.5.8
@angular/cli                      6.0.0-rc.6
@ngtools/json-schema              1.1.0
@ngtools/webpack                  6.0.0-rc.7
@schematics/angular               0.5.8
@schematics/update                0.5.8
rxjs                              6.0.0
typescript                        2.7.2
webpack                           4.6.0

Repro steps

build with :

"optimization": true,
"outputHashing": "none",
"sourceMap": true,
"extractCss": true,
 "namedChunks": false,
"aot": true,
"extractLicenses": true,
"vendorChunk": true,
"buildOptimizer": true

Run source-map-explorer ./dist/de/vendor.js

Observed behavior

Desired behavior

Don’t duplicate rxjs stuffs in vendor.js

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
filipesilvacommented, May 24, 2018

You might have different versions of rxjs used by libraries. If that’s the case, then the correct behavior is to have duplicates.

For instance, if your app depends on rxjs 6 and a library depends on rxjs 5, then your bundle should have both because they are different.

You can check this using npm list rxjs.

0reactions
angular-automatic-lock-bot[bot]commented, Sep 8, 2019

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

Read more comments on GitHub >

github_iconTop Results From Across the Web

distinct - RxJS
If the keySelector function is not provided, it will use each value from the source observable directly with an equality check against previous...
Read more >
Angular/RxJS 6: How to prevent duplicate HTTP requests?
After trying a few different methods, I came across this one that resolves my issue and only makes one HTTP request no matter...
Read more >
The RxJS library - Angular
RxJS (Reactive Extensions for JavaScript) is a library for reactive programming using observables that makes it easier to compose asynchronous or ...
Read more >
3 Common Rxjs Pitfalls (and how to avoid them)
In this post, we will go over some common trouble situations, explain why the ... We can think of it as something close...
Read more >
5 helpful RxJS solutions. to everyday problems - Medium
RxJS is a javascript library that allows us to code reactively using observable streams. With observables and functions provided by RxJS we ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found