Skip to content

Commit 8f3340f

Browse files
committed
fix: source maps path
1 parent 5b2c2f5 commit 8f3340f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/build/config.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,14 @@ export function getRollupConfig(options: ReteConfig, outputs: OutputOptions[], p
5757
name,
5858
format,
5959
sourcemap: true,
60+
sourcemapPathTransform: (relativePath: string) => {
61+
return join(SOURCE_FOLDER, relativePath)
62+
},
6063
banner: getBanner(pkg),
6164
globals,
6265
exports: 'named' as const,
6366
plugins: minify ? [terser()] : []
64-
}))).flat(),
67+
}) as RollupOutputOptions)).flat(),
6568
watch: {
6669
include: `${SOURCE_FOLDER}/**`
6770
},

0 commit comments

Comments
 (0)