Skip to content

Customize app.compilerOptions #185

@nicooprat

Description

@nicooprat

Hi there,

We're using MJML at the moment, in the process to migrate to vue-email. As MJML tags are unknown to Vue (they are processed by MJML after Vue compilation), it warns like this for every tag which makes the logs barely usable:

  console.warn
    [Vue warn]: Failed to resolve component: mjml
    If this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement.

We used to ignore those with:

app.config.compilerOptions.isCustomElement = (tag) => tag === 'mjml' || tag.startsWith('mj-');

Would it be possible to access the app or set the config somehow?

Thanks.

PS. Docs for MJML: https://documentation.mjml.io/

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions