Skip to content

Commit 0ca4329

Browse files
committed
handle map being nullable
1 parent 298010f commit 0ca4329

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cli/build/plugin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ async function lightningcss(result, { map = true, minify = true, autoprefixer =
4747
map: result.map
4848
? Object.assign(result.map, {
4949
toString() {
50-
return transformed.map.toString()
50+
return transformed.map?.toString()
5151
},
5252
})
5353
: result.map,

0 commit comments

Comments
 (0)