File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ import type {
1212} from 'esbuild'
1313import type { Format , NormalizedOptions } from '.'
1414import type { Logger } from './log'
15- import type { MaybePromise } from './utils'
15+ import { slash , type MaybePromise } from './utils'
1616import type { SourceMap } from 'rollup'
1717
1818export type ChunkInfo = {
@@ -132,7 +132,7 @@ export class PluginContainer {
132132 . filter ( ( file ) => ! file . path . endsWith ( '.map' ) )
133133 . map ( ( file ) : ChunkInfo | AssetInfo => {
134134 if ( isJS ( file . path ) || isCSS ( file . path ) ) {
135- const relativePath = path . relative ( process . cwd ( ) , file . path )
135+ const relativePath = slash ( path . relative ( process . cwd ( ) , file . path ) )
136136 const meta = metafile ?. outputs [ relativePath ]
137137 return {
138138 type : 'chunk' ,
You can’t perform that action at this time.
0 commit comments