Skip to content

Commit 0553a2b

Browse files
authored
MPP / KJS: Fix incorrect source maps generating for ESM target
1 parent 84727f8 commit 0553a2b

File tree

1 file changed

+1
-1
lines changed
  • libraries/tools/kotlin-gradle-plugin/src/common/kotlin/org/jetbrains/kotlin/gradle/targets/js/webpack

1 file changed

+1
-1
lines changed

libraries/tools/kotlin-gradle-plugin/src/common/kotlin/org/jetbrains/kotlin/gradle/targets/js/webpack/KotlinWebpackConfig.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ data class KotlinWebpackConfig(
211211
"""
212212
// source maps
213213
config.module.rules.push({
214-
test: /\.js${'$'}/,
214+
test: /\.m?js${'$'}/,
215215
use: ["source-map-loader"],
216216
enforce: "pre"
217217
});

0 commit comments

Comments
 (0)