File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ import { createLogger } from './logger'
31
31
import type { DepOptimizationOptions } from './optimizer'
32
32
import { createFilter } from '@rollup/pluginutils'
33
33
import type { ResolvedBuildOptions } from '.'
34
- import { parse as parseUrl } from 'url'
34
+ import { parse as parseUrl , pathToFileURL } from 'url'
35
35
import type { JsonOptions } from './plugins/json'
36
36
import type { PluginContainer } from './server/pluginContainer'
37
37
import { createPluginContainer } from './server/pluginContainer'
@@ -1008,7 +1008,7 @@ async function bundleConfigFile(
1008
1008
contents : contents
1009
1009
. replace (
1010
1010
/ \b i m p o r t \. m e t a \. u r l \b / g,
1011
- JSON . stringify ( `file:// ${ args . path } ` )
1011
+ JSON . stringify ( pathToFileURL ( args . path ) . href )
1012
1012
)
1013
1013
. replace (
1014
1014
/ \b _ _ d i r n a m e \b / g,
You can’t perform that action at this time.
0 commit comments