mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-14 18:13:54 +00:00
11 lines
237 B
TypeScript
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()
|
||
|
})
|
||
|
}
|