final class StandardConfig extends AnyRef

Configuration of a standard linker.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. StandardConfig
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. val batchMode: Boolean
  6. val checkIR: Boolean
  7. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  8. val closureCompilerIfAvailable: Boolean
  9. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  10. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  11. val esFeatures: ESFeatures
  12. val experimentalUseWebAssembly: Boolean
  13. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  14. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  15. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  16. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  17. val jsHeader: String
  18. val maxConcurrentWrites: Int
  19. val minify: Boolean
  20. val moduleKind: ModuleKind
  21. val moduleSplitStyle: ModuleSplitStyle
  22. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  23. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  24. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  25. val optimizer: Boolean
  26. val outputPatterns: OutputPatterns
  27. val parallel: Boolean
  28. val prettyPrint: Boolean
  29. val relativizeSourceMapBase: Option[URI]
  30. val semantics: Semantics
  31. val sourceMap: Boolean
  32. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  33. def toString(): String
    Definition Classes
    StandardConfig → AnyRef → Any
  34. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  35. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  36. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  37. def withBatchMode(batchMode: Boolean): StandardConfig
  38. def withCheckIR(checkIR: Boolean): StandardConfig
  39. def withClosureCompilerIfAvailable(closureCompilerIfAvailable: Boolean): StandardConfig
  40. def withESFeatures(f: (ESFeatures) ⇒ ESFeatures): StandardConfig
  41. def withESFeatures(esFeatures: ESFeatures): StandardConfig
  42. def withExperimentalUseWebAssembly(experimentalUseWebAssembly: Boolean): StandardConfig

    Specifies whether to use the experimental WebAssembly backend.

    Specifies whether to use the experimental WebAssembly backend.

    When using this setting, the following properties must also hold:

    • moduleKind == ModuleKind.ESModule
    • esFeatures.useECMAScript2015Semantics == true (true by default)
    • semantics.strictFloats == true (true by default; non-strict floats are deprecated)

    We may lift these restrictions in the future, although we do not expect to do so.

    If any of these restrictions are not met, linking will eventually throw an IllegalArgumentException.

    Exceptions thrown

    java.lang.UnsupportedOperationException In the future, if the feature gets removed.

    Note

    Currently, the WebAssembly backend silently ignores @JSExport and @JSExportAll annotations. This behavior may change in the future, either by making them warnings or errors, or by adding support for them. All other language features are supported.

    ,

    This setting is experimental. It may be removed in an upcoming *minor* version of Scala.js. Future minor versions may also produce code that requires more recent versions of JS engines supporting newer WebAssembly standards.

  43. def withJSHeader(jsHeader: String): StandardConfig

    Sets the jsHeader to a JS comment to add at the top of generated .js files.

    Sets the jsHeader to a JS comment to add at the top of generated .js files.

    The header must satisfy the following constraints:

    • It must contain only valid JS whitespace and/or JS comments (single- or multi-line comment, or, at the very beginning, a hashbang comment).
    • It must not use new line characters that are not UNIX new lines ("\n").
    • If non-empty, it must end with a new line.
    • It must not contain unpaired surrogate characters (i.e., it must be a valid UTF-16 string).

    Those requirements can be checked with StandardConfig.isValidJSHeader.

    Exceptions thrown

    java.lang.IllegalArgumentException if the header is not valid

  44. def withMaxConcurrentWrites(maxConcurrentWrites: Int): StandardConfig
  45. def withMinify(minify: Boolean): StandardConfig
  46. def withModuleKind(moduleKind: ModuleKind): StandardConfig
  47. def withModuleSplitStyle(moduleSplitStyle: ModuleSplitStyle): StandardConfig
  48. def withOptimizer(optimizer: Boolean): StandardConfig
  49. def withOutputPatterns(f: (OutputPatterns) ⇒ OutputPatterns): StandardConfig
  50. def withOutputPatterns(outputPatterns: OutputPatterns): StandardConfig
  51. def withParallel(parallel: Boolean): StandardConfig
  52. def withPrettyPrint(prettyPrint: Boolean): StandardConfig
  53. def withRelativizeSourceMapBase(relativizeSourceMapBase: Option[URI]): StandardConfig
  54. def withSemantics(f: (Semantics) ⇒ Semantics): StandardConfig
  55. def withSemantics(semantics: Semantics): StandardConfig
  56. def withSourceMap(sourceMap: Boolean): StandardConfig

Inherited from AnyRef

Inherited from Any

Ungrouped