File tree Expand file tree Collapse file tree 3 files changed +399
-314
lines changed Expand file tree Collapse file tree 3 files changed +399
-314
lines changed Original file line number Diff line number Diff line change @@ -3,12 +3,16 @@ import * as magicRegexp from 'magic-regexp'
33
44export default function MagicRegExpNuxtModule ( ) {
55 const nuxt = this . nuxt
6- nuxt . hook ( 'autoImports:sources' , presets => {
7- presets . push ( {
8- from : 'magic-regexp' ,
9- imports : Object . keys ( magicRegexp ) ,
10- } )
11- } )
6+ nuxt . hook (
7+ 'autoImports:sources' ,
8+ presets => {
9+ presets . push ( {
10+ from : 'magic-regexp' ,
11+ imports : Object . keys ( magicRegexp ) ,
12+ } )
13+ } ,
14+ { allowDeprecated : true }
15+ )
1216
1317 // Disable RegExp code transformation in development mode
1418 if ( nuxt . options . dev ) return
Original file line number Diff line number Diff line change 5252 "@release-it/conventional-changelog" : " latest" ,
5353 "@types/estree" : " ^1.0.0" ,
5454 "@types/node" : " latest" ,
55- "@vitest/coverage-c8" : " ^0.22 .1" ,
55+ "@vitest/coverage-c8" : " ^0.23 .1" ,
5656 "acorn" : " ^8.8.0" ,
5757 "c8" : " latest" ,
5858 "conventional-changelog-conventionalcommits" : " latest" ,
6767 "release-it" : " latest" ,
6868 "typescript" : " latest" ,
6969 "unbuild" : " latest" ,
70- "vite" : " ^3.0.9 " ,
70+ "vite" : " ^3.1.0 " ,
7171 "vitest" : " latest"
7272 },
7373 "resolutions" : {
7474 "magic-regexp" : " link:."
7575 },
76- "packageManager" : " pnpm@7.9.5 " ,
76+ "packageManager" : " pnpm@7.11.0 " ,
7777 "volta" : {
7878 "node" : " 16.17.0"
7979 }
You can’t perform that action at this time.
0 commit comments