Skip to content

Commit d3e4de7

Browse files
committed
fix(config-hmr): interopDefault when importing config changes
1 parent f767243 commit d3e4de7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/internal-context/load.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ const createInternalContext = async (moduleOptions: ModuleOptions, nuxt = useNux
266266
const ctx = twCtx.use()
267267
setTimeout(async () => {
268268
await import(ctx.dst!).then(async (_config) => {
269-
twCtx.set({ config: resolveTWConfig(_config) })
269+
twCtx.set({ config: resolveTWConfig(_config.default ?? _config) })
270270
await nuxt.callHook('tailwindcss:internal:regenerateTemplates')
271271
})
272272
}, 100)

0 commit comments

Comments
 (0)