UNPKG

bootstrap-styled

Version:

Bootstrap Styled is a front-end ecosystem for React made with Bootstrap 4 philosophy, using the power of css-in-js thanks to styled-components.

44 lines (43 loc) 805 B
module.exports = { only: [ 'src', 'styleguide', ], presets: [ [ '@babel/preset-env', { modules: false, }, ], '@babel/preset-react', ], plugins: [ 'styled-components', 'babel-plugin-macros', '@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', ], }, }, };