diff --git a/CHANGELOG.md b/CHANGELOG.md index 3e72e0892..f931b3de2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,10 +6,11 @@ $ npm install @ngxs/store@dev ### To become next patch version -- Refactor: Allow tree-shaking of dev-only code [#2259](https://github.com/ngxs/store/pull/2259) - Refactor: Use field initializers for injectees [#2258](https://github.com/ngxs/store/pull/2258) +- Refactor: Allow tree-shaking of dev-only code [#2259](https://github.com/ngxs/store/pull/2259) - Fix(store): Run plugins in injection context [#2256](https://github.com/ngxs/store/pull/2256) - Fix(websocket-plugin): Do not dispatch action when root injector is destroyed [#2257](https://github.com/ngxs/store/pull/2257) +- Refactor(store): Tree-shake development options token [#2260](https://github.com/ngxs/store/pull/2260) ### 18.1.5 2024-11-12 diff --git a/packages/store/src/dev-features/symbols.ts b/packages/store/src/dev-features/symbols.ts index 65d3c2a1b..6c0a0c518 100644 --- a/packages/store/src/dev-features/symbols.ts +++ b/packages/store/src/dev-features/symbols.ts @@ -12,10 +12,11 @@ export interface NgxsDevelopmentOptions { }; } -export const NGXS_DEVELOPMENT_OPTIONS = new InjectionToken( - typeof ngDevMode !== 'undefined' && ngDevMode ? 'NGXS_DEVELOPMENT_OPTIONS' : '', - { - providedIn: 'root', - factory: () => ({ warnOnUnhandledActions: true }) - } -); +export const NGXS_DEVELOPMENT_OPTIONS = + /* @__PURE__ */ new InjectionToken( + typeof ngDevMode !== 'undefined' && ngDevMode ? 'NGXS_DEVELOPMENT_OPTIONS' : '', + { + providedIn: 'root', + factory: () => ({ warnOnUnhandledActions: true }) + } + );