Skip to content

Commit afdc0de

Browse files
committed
feat(hmr): update clause
1 parent 640ccb5 commit afdc0de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/module.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ export default defineNuxtModule<ModuleOptions>({
177177
nuxt.hook('nitro:init', (nitro) => {
178178
nuxt.hook('vite:serverCreated', (viteServer: ViteDevServer) => {
179179
nuxt.hook('builder:watch', async (_, path) => {
180-
const isTokenFile = moduleOptions.tokens ? privateConfig.tokensFilePaths.some(tokensFilePath => tokensFilePath.includes(path.replace('.js', '')) || tokensFilePath.includes(path.replace('.ts', ''))) : false
180+
const isTokenFile = path.includes('tokens.config.ts') || path.includes('tokens.config.js')
181181

182182
if (isTokenFile) {
183183
const { tokens } = await refreshTokens(nitro)

0 commit comments

Comments
 (0)