function compile(vfileCompatible, compileOptions) {
  const {file, options} = resolveFileAndOptions(vfileCompatible, compileOptions)
  return createProcessor(options).process(file)
}
Compile MDX to JS.

@param {Readonly<Compatible>} vfileCompatible
  MDX document to parse.
@param {Readonly<CompileOptions> | null | undefined} [compileOptions]
  Compile configuration (optional).
@return {Promise<VFile>}
  Promise to compiled file.