Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface BabylonOptions

Hierarchy

  • BabylonOptions

Index

Properties

Optional allowImportExportEverywhere

allowImportExportEverywhere: undefined | false | true

By default, import and export declarations can only appear at a program's top level. Setting this option to true allows them anywhere where a statement is allowed.

Optional allowReturnOutsideFunction

allowReturnOutsideFunction: undefined | false | true

By default, a return statement at the top level raises an error. Set this to true to accept such code.

Optional allowSuperOutsideMethod

allowSuperOutsideMethod: undefined | false | true

Optional plugins

plugins: PluginName[]

Array containing the plugins that you want to enable.

Optional sourceFilename

sourceFilename: undefined | string

Correlate output AST nodes with their source filename. Useful when generating code and source maps from the ASTs of multiple input files.

Optional sourceType

sourceType: "script" | "module"

Indicate the mode the code should be parsed in. Can be either "script" or "module".

Generated using TypeDoc