From 5c2c2b757ac920b26bdb92b697a1df41052d500b Mon Sep 17 00:00:00 2001 From: Bogdan Chadkin Date: Tue, 23 Feb 2021 16:06:21 +0300 Subject: [PATCH] Transpile classes Ref https://github.com/mjmlio/mjml/issues/2149 External packages rely on transpiled classes. We can disable transpilation in major release. --- babel.config.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/babel.config.js b/babel.config.js index a9a888e49..04c3ed896 100644 --- a/babel.config.js +++ b/babel.config.js @@ -1,5 +1,8 @@ module.exports = { - presets: [['@babel/env', { targets: { node: '10' } }]], + presets: [['@babel/env', { + targets: { node: '10' }, + include: ['transform-classes'], + }]], plugins: [ '@babel/proposal-class-properties', [