From e718aae1dd90dedee702cd08cdd602faf94bc31f Mon Sep 17 00:00:00 2001 From: Johann Schopplich Date: Mon, 6 Nov 2023 14:21:50 +0100 Subject: [PATCH] refactor!: rename `__ENABLE_HASH_DECODING__` to `__UNLAZY_HASH_DECODING__` --- packages/nuxt/src/module.ts | 2 +- packages/unlazy/vite.config.bundle.ts | 2 +- packages/unlazy/vite.config.bundle.with-hashing.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/nuxt/src/module.ts b/packages/nuxt/src/module.ts index aa0f5d3..7b838e0 100644 --- a/packages/nuxt/src/module.ts +++ b/packages/nuxt/src/module.ts @@ -52,7 +52,7 @@ export default defineNuxtModule({ extendViteConfig((config) => { config.define = config.define || {} - config.define.__ENABLE_HASH_DECODING__ = true + config.define.__UNLAZY_HASH_DECODING__ = true }) addComponent({ diff --git a/packages/unlazy/vite.config.bundle.ts b/packages/unlazy/vite.config.bundle.ts index 345c090..846154d 100644 --- a/packages/unlazy/vite.config.bundle.ts +++ b/packages/unlazy/vite.config.bundle.ts @@ -13,6 +13,6 @@ export default defineConfig({ }, }, define: { - __ENABLE_HASH_DECODING__: false, + __UNLAZY_HASH_DECODING__: false, }, }) diff --git a/packages/unlazy/vite.config.bundle.with-hashing.ts b/packages/unlazy/vite.config.bundle.with-hashing.ts index d2bc7ec..ed00148 100644 --- a/packages/unlazy/vite.config.bundle.with-hashing.ts +++ b/packages/unlazy/vite.config.bundle.with-hashing.ts @@ -15,6 +15,6 @@ export default defineConfig({ }, define: { - __ENABLE_HASH_DECODING__: true, + __UNLAZY_HASH_DECODING__: true, }, })