org.jetbrains.kotlin.js.config.JSConfigurationKeys Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kotlin-compiler-embeddable Show documentation
Show all versions of kotlin-compiler-embeddable Show documentation
the Kotlin compiler embeddable
/*
* Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
package org.jetbrains.kotlin.js.config;
import org.jetbrains.kotlin.config.CompilerConfigurationKey;
import org.jetbrains.kotlin.incremental.js.IncrementalDataProvider;
import org.jetbrains.kotlin.incremental.js.IncrementalNextRoundChecker;
import org.jetbrains.kotlin.incremental.js.IncrementalResultsConsumer;
import org.jetbrains.kotlin.konan.file.ZipFileSystemAccessor;
import org.jetbrains.kotlin.serialization.js.ModuleKind;
import java.io.File;
import java.util.List;
import java.util.Map;
public class JSConfigurationKeys {
public static final CompilerConfigurationKey> TRANSITIVE_LIBRARIES =
CompilerConfigurationKey.create("library files for transitive dependencies");
public static final CompilerConfigurationKey> LIBRARIES =
CompilerConfigurationKey.create("library file paths");
public static final CompilerConfigurationKey SOURCE_MAP =
CompilerConfigurationKey.create("generate source map");
public static final CompilerConfigurationKey USE_DEBUGGER_CUSTOM_FORMATTERS =
CompilerConfigurationKey.create("add import of debugger custom formatters");
public static final CompilerConfigurationKey OUTPUT_DIR =
CompilerConfigurationKey.create("output directory");
public static final CompilerConfigurationKey SOURCE_MAP_PREFIX =
CompilerConfigurationKey.create("prefix to add to paths in source map");
public static final CompilerConfigurationKey> SOURCE_MAP_SOURCE_ROOTS =
CompilerConfigurationKey.create("base directories used to calculate relative paths for source map");
public static final CompilerConfigurationKey SOURCE_MAP_EMBED_SOURCES =
CompilerConfigurationKey.create("embed source files into source map");
public static final CompilerConfigurationKey SOURCEMAP_NAMES_POLICY = CompilerConfigurationKey.create(
"a policy to generate a mapping from generated identifiers to their corresponding original names");
public static final CompilerConfigurationKey SOURCE_MAP_INCLUDE_MAPPINGS_FROM_UNAVAILABLE_FILES = CompilerConfigurationKey.create(
"insert source mappings from libraries even if their sources are unavailable on the end-user machine");
public static final CompilerConfigurationKey META_INFO =
CompilerConfigurationKey.create("generate .meta.js and .kjsm files");
public static final CompilerConfigurationKey TARGET =
CompilerConfigurationKey.create("ECMA version target");
public static final CompilerConfigurationKey MODULE_KIND =
CompilerConfigurationKey.create("module kind");
public static final CompilerConfigurationKey TYPED_ARRAYS_ENABLED =
CompilerConfigurationKey.create("TypedArrays enabled");
public static final CompilerConfigurationKey INCREMENTAL_DATA_PROVIDER =
CompilerConfigurationKey.create("incremental data provider");
public static final CompilerConfigurationKey INCREMENTAL_RESULTS_CONSUMER =
CompilerConfigurationKey.create("incremental results consumer");
public static final CompilerConfigurationKey INCREMENTAL_NEXT_ROUND_CHECKER =
CompilerConfigurationKey.create("incremental compilation next round checker");
public static final CompilerConfigurationKey FRIEND_PATHS_DISABLED =
CompilerConfigurationKey.create("disable support for friend paths");
public static final CompilerConfigurationKey> FRIEND_PATHS =
CompilerConfigurationKey.create("friend module paths");
public static final CompilerConfigurationKey METADATA_ONLY =
CompilerConfigurationKey.create("generate .meta.js and .kjsm files only");
public static final CompilerConfigurationKey DEVELOPER_MODE =
CompilerConfigurationKey.create("enables additional checkers");
public static final CompilerConfigurationKey GENERATE_COMMENTS_WITH_FILE_PATH =
CompilerConfigurationKey.create("generate comments with file path at the start of each file block");
public static final CompilerConfigurationKey GENERATE_POLYFILLS =
CompilerConfigurationKey.create("generate polyfills for newest properties, methods and classes from ES6+");
public static final CompilerConfigurationKey DEFINE_PLATFORM_MAIN_FUNCTION_ARGUMENTS =
CompilerConfigurationKey.create("provide platform specific args as a parameter of the main function");
public static final CompilerConfigurationKey GENERATE_DTS =
CompilerConfigurationKey.create("generate TypeScript definition file");
public static final CompilerConfigurationKey COMPILE_SUSPEND_AS_JS_GENERATOR =
CompilerConfigurationKey.create("force suspend functions compilation int JS generator functions");
public static final CompilerConfigurationKey GENERATE_REGION_COMMENTS =
CompilerConfigurationKey.create("generate special comments at the start and the end of each file block, " +
"it allows to fold them and navigate to them in the IDEA");
public static final CompilerConfigurationKey