JS: add -Xmetadata-only flag for JS common code modules (KT-33142 fixed)
This commit is contained in:
+1
@@ -6,6 +6,7 @@ where advanced options include:
|
||||
-Xir-legacy-gradle-plugin-compatibility
|
||||
Make KLIB generation compatible with legacy gradle plugin
|
||||
-Xir-produce-only={ klib, js } Type of output to produce. Overrides -meta-info argument.
|
||||
-Xmetadata-only Generate *.meta.js and *.kjsm files only
|
||||
-Xtyped-arrays Translate primitive arrays to JS typed arrays
|
||||
-Xallow-kotlin-package Allow compiling code in package 'kotlin' and allow not requiring kotlin.stdlib in module-info
|
||||
-Xallow-result-return-type Allow compiling code when `kotlin.Result` is used as a return type
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
$TESTDATA_DIR$/separateModules/sepModule1.kt
|
||||
-meta-info
|
||||
-Xmetadata-only
|
||||
-output
|
||||
$TEMP_DIR$/m1/m1.js
|
||||
---
|
||||
$TESTDATA_DIR$/separateModules/sepModule2.kt
|
||||
-libraries
|
||||
$TEMP_DIR$/m1
|
||||
-output
|
||||
$TEMP_DIR$/m2/m2.js
|
||||
@@ -0,0 +1 @@
|
||||
OK
|
||||
@@ -0,0 +1,5 @@
|
||||
// EXISTS: m1/m1.meta.js
|
||||
// ABSENT: m1/m1.js
|
||||
// EXISTS: m1/m1/m1/m1.kjsm
|
||||
|
||||
// EXISTS: m2/m2.js
|
||||
Reference in New Issue
Block a user