diff --git a/apps/meteor/.storybook/babel.config.js b/apps/meteor/.storybook/babel.config.js index 666946b95d78..66538f004bd5 100644 --- a/apps/meteor/.storybook/babel.config.js +++ b/apps/meteor/.storybook/babel.config.js @@ -7,15 +7,15 @@ module.exports = { useBuiltIns: 'usage', corejs: '3', modules: 'commonjs', + include: [ + '@babel/plugin-proposal-class-properties', + '@babel/plugin-proposal-optional-chaining', + '@babel/plugin-proposal-nullish-coalescing-operator', + ], }, ], '@babel/preset-react', '@babel/preset-flow', - '@babel/preset-typescript', - ], - plugins: [ - '@babel/plugin-proposal-class-properties', - '@babel/plugin-proposal-optional-chaining', - '@babel/plugin-proposal-nullish-coalescing-operator', + ['@babel/preset-typescript', { allowDeclareFields: true }], ], };