Nuxt/packages/bridge/src/transpile.ts

11 lines
237 B
TypeScript

import { useNuxt } from '@nuxt/kit'
import { addModuleTranspiles } from '../../nuxt3/src/core/modules'
export const setupTranspile = () => {
const nuxt = useNuxt()
nuxt.hook('modules:done', () => {
addModuleTranspiles()
})
}