Website Structure
This commit is contained in:
parent
62812f2090
commit
71f0676a62
22365 changed files with 4265753 additions and 791 deletions
19
Frontend-Learner/node_modules/magic-regexp/nuxt.mjs
generated
vendored
Normal file
19
Frontend-Learner/node_modules/magic-regexp/nuxt.mjs
generated
vendored
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
import { addImportsSources, addVitePlugin, addWebpackPlugin, defineNuxtModule } from '@nuxt/kit'
|
||||
import * as magicRegexp from 'magic-regexp'
|
||||
import { MagicRegExpTransformPlugin } from 'magic-regexp/transform'
|
||||
|
||||
export default defineNuxtModule({
|
||||
setup(_options, nuxt) {
|
||||
addImportsSources({
|
||||
from: 'magic-regexp',
|
||||
imports: Object.keys(magicRegexp),
|
||||
})
|
||||
|
||||
// Disable RegExp code transformation in development mode
|
||||
if (nuxt.options.dev)
|
||||
return
|
||||
|
||||
addWebpackPlugin(MagicRegExpTransformPlugin.webpack())
|
||||
addVitePlugin(MagicRegExpTransformPlugin.vite())
|
||||
},
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue