File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -2022,9 +2022,6 @@ async function bundleConfigFile(
2022
2022
} ,
2023
2023
// disable treeshake to include files that is not sideeffectful to `moduleIds`
2024
2024
treeshake : false ,
2025
- // TODO: check if sourcemap works correctly
2026
- // the last slash is needed to make the path correct
2027
- // sourceRoot: path.dirname(fileName) + path.sep,
2028
2025
plugins : [
2029
2026
( ( ) => {
2030
2027
const packageCache = new Map ( )
@@ -2130,6 +2127,9 @@ async function bundleConfigFile(
2130
2127
const result = await bundle . generate ( {
2131
2128
format : isESM ? 'esm' : 'cjs' ,
2132
2129
sourcemap : 'inline' ,
2130
+ sourcemapPathTransform ( relative ) {
2131
+ return path . resolve ( fileName , relative )
2132
+ } ,
2133
2133
} )
2134
2134
await bundle . close ( )
2135
2135
You can’t perform that action at this time.
0 commit comments