Skip to content

Commit

Permalink
fix(webpack): sourceMap (#3732)
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon-He95 committed Apr 16, 2024
1 parent a3170ae commit 0dab787
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/webpack/src/index.ts
Expand Up @@ -145,7 +145,7 @@ export default function WebpackPlugin<Theme extends object>(
return escapeCss(css)
})
if (replaced)
compilation.assets[file] = new WebpackSources.RawSource(code) as any
compilation.assets[file] = new WebpackSources.SourceMapSource(code, file, compilation.assets[file].map() as any) as any
}
})
})
Expand Down

0 comments on commit 0dab787

Please sign in to comment.