Deprecated warning!
vh13294 opened this issue · 1 comments
vh13294 commented
Here is my package.json
{
"dependencies": {
"mjml": "^4.10.3",
"mjml-react": "^2.0.0",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"typescript": "^4.4.3"
},
}
tsconfig
{
"compilerOptions": {
"jsx": "react-jsx",
"module": "commonjs",
"declaration": true,
"declarationMap": true,
"strict": true,
"removeComments": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"allowSyntheticDefaultImports": true,
"target": "ESNEXT",
"sourceMap": true,
"outDir": "./dist",
"baseUrl": "./",
"incremental": true,
"skipLibCheck": true,
"esModuleInterop": true,
}
}
code to reproduce
import { render } from 'mjml-react';
const template = home();
render(template).html;
function home(): React.ReactElement {
return (
<Mjml>
<MjmlBody></MjmlBody>
</Mjml>
);
}
terminal output:
"minify" option is deprecated in mjml-core and only available in mjml cli.