-
Notifications
You must be signed in to change notification settings - Fork 20
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
Secondary entry points to allow better dead-code elimination #4628
Conversation
f4c8b21
to
028ac38
Compare
58f220f
to
7e7a1be
Compare
hslayers-ng bundle part size comparison for https://www.agrihub.cz/hsl-ng/AgroClima/ |
Use ngIf instead of hidden and simplify value calculation
BREAKING CHANGE: query component (info panel) renamed to query, info component (compositionLoadingProgress) renamed to info and configuration moved from panels to components
Less verbose internal panels creation Expose single method for creating external panels with and sb buttons
…mponents Align layerm-manager files with naming convention of the repo BREAKING CHANGE: panelsEnabled options renamed
refactor: Remove @defer usage as currently it doesnt allow treeshaking of the component
build: Improve treeshakability of print component
fix: Print imports
Code distribution changes from per component to chunk per panel
In contrast with chunk create by less verbose approach + max chunk number plugin content of these chunks are not mixed
fix(sensors): Panel visiblity refactor: No panel enabled check necessary when switching panels Only active panels are available
The folder for sub-entrypoints MUST be next to the src folder https://stackoverflow.com/questions/74012408/using-single-component-from-library-causes-lazy-loaded-modules-to-end-up-in-main
Add config option toggling the component - componentsEnabled.queryPopup
Use hslayers element/module instaed of layout
Use hslayers component and remove comments about popups
Move types out of common
Saves around 100kb of chunk size eg 5%
a201a1c
to
1c30d01
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am leaving some comments, but propose to only solve the typos in this PR and to look at the rest at some consecutive PRs so this doesn't grow indefinitely.
projects/hslayers/shared/panel-constructor/panel-constructor.service.ts
Outdated
Show resolved
Hide resolved
projects/test-app/src/hslayers-app/some-panel/some-panel.component.html
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why this files goes into shared? This is not a service. Is it because it requires services in its constructor?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Exactly, its imported only via wfs.service which is in the same entry point as this file. Circular dependencies are more strict than we were used to before. Once you have import from shared/add-data in components/add-data you can not go the other way around. Even for totaly separate files.
FTR, this PR also removes hlayers-material, an HSLayers-NG version with Material Design. |
0e9c915
to
64e871d
Compare
Description
As described in #4616
Related issues or pull requests
closes #4616
Pull request type
Please check the type of change your PR introduces:
Do you introduce a breaking change?
Checklist
npm test
locally)