File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 1
- import { fileURLToPath } from 'url'
1
+ import { fileURLToPath } from 'node: url'
2
2
import chalk from 'chalk'
3
+ import { normalize } from 'pathe'
3
4
4
5
import { defineNuxtModule , isNuxt2 , logger , resolveModule } from '@nuxt/kit'
5
6
import { DEFAULTS , ModuleOptions } from './config'
@@ -35,7 +36,7 @@ export default defineNuxtModule<ModuleOptions>({
35
36
36
37
// Add a nitro plugin that will run the validator for us on each request
37
38
config . plugins = config . plugins || [ ]
38
- config . plugins . push ( fileURLToPath ( new URL ( './runtime/nitro' , import . meta. url ) ) )
39
+ config . plugins . push ( normalize ( fileURLToPath ( new URL ( './runtime/nitro' , import . meta. url ) ) ) )
39
40
config . virtual = config . virtual || { }
40
41
config . virtual [ '#html-validator-config' ] = `export default ${ JSON . stringify ( moduleOptions ) } `
41
42
} )
You can’t perform that action at this time.
0 commit comments