MPP / KJS: Fix incorrect source maps generating for ESM target

(cherry picked from commit 0553a2bf12b35f33f30c6400ab3af14341877946)
This commit is contained in:
Alexander Popoff
2024-01-12 20:33:34 +02:00
committed by teamcity
parent ad9025afa6
commit ddd71851cf
@@ -211,7 +211,7 @@ data class KotlinWebpackConfig(
"""
// source maps
config.module.rules.push({
test: /\.js${'$'}/,
test: /\.m?js${'$'}/,
use: ["source-map-loader"],
enforce: "pre"
});