Mjml: Support typescript import

Created on 2 Dec 2020  路  1Comment  路  Source: mjmlio/mjml

Screen Shot 2020-12-02 at 5 02 32 PM

At the moment to use with typescript we have to do a work around esModuleInterop.

Most helpful comment

You can hack ts and use import * as mjml2html from 'mjml' or just enable esModuleInterop and solve all problems. Default typescript behaviour is compatibility legacy.

>All comments

You can hack ts and use import * as mjml2html from 'mjml' or just enable esModuleInterop and solve all problems. Default typescript behaviour is compatibility legacy.

Was this page helpful?
0 / 5 - 0 ratings