Skip to content

Commit d3e4de7

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

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎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
constctx=twCtx.use()
267267
setTimeout(async()=>{
268268
awaitimport(ctx.dst!).then(async(_config)=>{
269-
twCtx.set({config: resolveTWConfig(_config)})
269+
twCtx.set({config: resolveTWConfig(_config.default??_config)})
270270
awaitnuxt.callHook('tailwindcss:internal:regenerateTemplates')
271271
})
272272
},100)

0 commit comments

Comments
 (0)