You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Before Ivy (v8), the components are included in the lazy loaded chunks.
Description
Lazy loading does not work with feature modules exported from the same library project. Any additions to the feature module result in increase in main.js bundle size, instead of the lazy loaded feature module.
Remove / add content to listing.component.scss in projects/some-lib/src/lib/lazy/components/listing/listing.component.scss, and what happens is that the main.js bundle size is the one reduced instead.
🐞 Bug report
Command (mark with an
x
)Is this a regression?
Before Ivy (v8), the components are included in the lazy loaded chunks.
Description
Lazy loading does not work with feature modules exported from the same library project. Any additions to the feature module result in increase in main.js bundle size, instead of the lazy loaded feature module.
🔬 Minimal Reproduction
Clone this repo: https://github.com/jonathanlie/repro-lazy-loading-issue
npm install
ng build some-lib --watch
on a tabng serve some-app
on a separate tab afterlocalhost:4200
listing.component.scss
inprojects/some-lib/src/lib/lazy/components/listing/listing.component.scss
, and what happens is that the main.js bundle size is the one reduced instead.🌍 Your Environment
The text was updated successfully, but these errors were encountered: