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'
22import chalk from 'chalk'
3+ import { normalize } from 'pathe'
34
45import { defineNuxtModule , isNuxt2 , logger , resolveModule } from '@nuxt/kit'
56import { DEFAULTS , ModuleOptions } from './config'
@@ -35,7 +36,7 @@ export default defineNuxtModule<ModuleOptions>({
3536
3637 // Add a nitro plugin that will run the validator for us on each request
3738 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 ) ) ) )
3940 config . virtual = config . virtual || { }
4041 config . virtual [ '#html-validator-config' ] = `export default ${ JSON . stringify ( moduleOptions ) } `
4142 } )
You can’t perform that action at this time.
0 commit comments