// Nuxt 3
import { defineNuxtConfig } from 'nuxt'
export default defineNuxtConfig({
// This will also enable auto-imports of magic-regexp helpers
modules: ['magic-regexp/nuxt'],
})
vite.config.ts
import { defineConfig } from 'vite'
import { MagicRegExpTransformPlugin } from 'magic-regexp/transform'
export default defineConfig({
plugins: [MagicRegExpTransformPlugin.vite()],
})