From 34c8605cfaa20eb26bd57dacfe7b38311c652bba Mon Sep 17 00:00:00 2001 From: Alex Kanunnikov Date: Tue, 6 Feb 2024 18:24:22 +0300 Subject: [PATCH] + --- src/ember-compat/ember__destroyable.ts | 11 +++++---- .../glimmer__tracking__primitives__cache.ts | 1 + .../glimmer__tracking__primitives__storage.ts | 5 ++++ vite.config.mts | 24 +++++++++++++++++++ 4 files changed, 36 insertions(+), 5 deletions(-) create mode 100644 src/ember-compat/glimmer__tracking__primitives__cache.ts create mode 100644 src/ember-compat/glimmer__tracking__primitives__storage.ts diff --git a/src/ember-compat/ember__destroyable.ts b/src/ember-compat/ember__destroyable.ts index ee36207c..5ce540a9 100644 --- a/src/ember-compat/ember__destroyable.ts +++ b/src/ember-compat/ember__destroyable.ts @@ -1,5 +1,6 @@ -export { registerDestructor } from '@lifeart/gxt'; - -export function destroy() { - debugger; -} +export { + destroy, + isDestroyed, + registerDestructor, + associateDestroyableChild, +} from './../utils/destroyable'; diff --git a/src/ember-compat/glimmer__tracking__primitives__cache.ts b/src/ember-compat/glimmer__tracking__primitives__cache.ts new file mode 100644 index 00000000..22184c99 --- /dev/null +++ b/src/ember-compat/glimmer__tracking__primitives__cache.ts @@ -0,0 +1 @@ +export { createCache, getValue, isConst } from './../utils/caching-primitives'; diff --git a/src/ember-compat/glimmer__tracking__primitives__storage.ts b/src/ember-compat/glimmer__tracking__primitives__storage.ts new file mode 100644 index 00000000..816259e5 --- /dev/null +++ b/src/ember-compat/glimmer__tracking__primitives__storage.ts @@ -0,0 +1,5 @@ +export { + createStorage, + getValue, + setValue, +} from './../utils/storage-primitives'; diff --git a/vite.config.mts b/vite.config.mts index 2c916ab7..0c399dd4 100644 --- a/vite.config.mts +++ b/vite.config.mts @@ -377,6 +377,30 @@ export default defineConfig(({ mode }) => ({ "ember-math-helpers": "ember-math-helpers/addon", "ember-set-body-class": "ember-set-body-class/addon", "@html-next/vertical-collection": "@html-next/vertical-collection/addon", + "@glimmer/tracking/primitives/storage": path.join( + currentPath, + "src", + "ember-compat", + "glimmer__tracking__primitives__storage.ts", + ), + "ember-tracked-storage-polyfill": path.join( + currentPath, + "src", + "ember-compat", + "glimmer__tracking__primitives__storage.ts", + ), + "@glimmer/tracking/primitives/cache": path.join( + currentPath, + "src", + "ember-compat", + "glimmer__tracking__primitives__cache.ts", + ), + "ember-cache-primitive-polyfill": path.join( + currentPath, + "src", + "ember-compat", + "glimmer__tracking__primitives__cache.ts", + ), }, }, }));