ngneat/elf

ESM bundles contain RXJS code

scomans opened this issue · 0 comments

Which @ngneat/elf-* package(s) are the source of the bug?

entities, persist-state

Is this a regression?

Yes

Description

I noticed that the initialized$ observables coming from persist-state was not compatible with the RXJS I used in my project. This is because parts of RXJS are bundled with persist-state instead of importing it (also entities and there might be more affected but not the main lib). And therefore the observables are not compatible when RXJS matches the symbols.

I checked v1.1.6 of persist-state and it did not contain the RXJS code but instead imported RXJS as you would expect.

Please provide the environment you discovered this bug in

node 20.11
@ngneat/elf: ^2.5.1
@ngneat/elf-devtools: ^1.3.0"
@ngneat/elf-entities: 5.0.0
@ngneat/elf-persist-state: ^1.2.0