module.exports = { only: [ 'src', ], presets: [ [ '@babel/preset-env', { modules: false, }, ], ], plugins: [ 'array-includes', '@babel/plugin-syntax-dynamic-import', '@babel/plugin-syntax-import-meta', '@babel/plugin-proposal-class-properties', '@babel/plugin-proposal-json-strings', [ '@babel/plugin-proposal-decorators', { legacy: true, }, ], ], env: { production: { plugins: [ 'add-module-exports', '@babel/plugin-transform-modules-commonjs', ], }, test: { plugins: [ '@babel/plugin-transform-modules-commonjs', 'dynamic-import-node', ], }, }, };