-
Notifications
You must be signed in to change notification settings - Fork 406
refactor: replace const enum
#2332
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
Conversation
View your CI Pipeline Execution ↗ for commit 0654555.
☁️ Nx Cloud last updated this comment at |
@ngxs/devtools-plugin
@ngxs/form-plugin
@ngxs/hmr-plugin
@ngxs/router-plugin
@ngxs/storage-plugin
@ngxs/store
@ngxs/websocket-plugin
commit: |
BundleMonFiles updated (2)
Unchanged files (4)
Total files change -208B -0.15% Groups updated (1)
Final result: ✅ View report in BundleMon website ➡️ |
BundleMon (NGXS Plugins)Files updated (2)
Unchanged files (7)
Total files change +70B +0.34% Groups updated (1)
Final result: ❌ View report in BundleMon website ➡️ |
BundleMon (Integration Projects)Files updated (1)
Total files change +94B +0.14% Final result: ✅ View report in BundleMon website ➡️ |
Angular has a local compilation mode, intended for use with the TypeScript compiler option `isolatedModules`, which disallows importing `const enum`. In such cases, we replace it with a `const` object.
b3613e7
to
d8343f8
Compare
Code Climate has analyzed commit 0654555 and detected 0 issues on this pull request. The test coverage on the diff in this pull request is 100.0% (50% is the threshold). This pull request will bring the total coverage in the repository to 94.0% (0.0% change). View more on Code Climate. |
Angular has a local compilation mode, intended for use with the TypeScript compiler option
isolatedModules
, which disallows importingconst enum
. In such cases, we replace it with aconst
object.An
enum
generates more code compared to a plain object.Resolves issue #2331