1
0
mirror of https://github.com/verdaccio/verdaccio.git synced 2024-11-13 03:35:52 +01:00
verdaccio/packages/plugins/ui-theme/babel.config.js
Juan Picado e9e4552658 feat: ui theme on 5.x (#2033)
* refactor: relocate theme-ui as plugin

* refactor: relocate theme-ui as plugin

* refactor: relocate theme-ui as plugin

* chore: fix lint

* chore: add missing folder

* refactor: relocate theme-ui as plugin

* refactor: relocate theme-ui as plugin

* refactor: relocate theme-ui as plugin

* chore: update scripts

* refactor: relocate theme-ui as plugin

* refactor: relocate theme-ui as plugin

* refactor: relocate theme-ui as plugin

* refactor: relocate theme-ui as plugin
2021-04-09 17:54:29 +02:00

50 lines
1.0 KiB
JavaScript

module.exports = {
presets: [
[
'@babel/preset-env',
{
targets: [
'last 5 versions',
'FireFox >= 44',
'Safari >= 7',
'Explorer 11',
'last 4 Edge versions',
],
bugfixes: true,
modules: 'auto',
debug: false,
},
],
'@babel/preset-react',
'@babel/typescript',
],
plugins: [
'@babel/proposal-class-properties',
'@babel/proposal-object-rest-spread',
'@babel/plugin-proposal-optional-chaining',
'@babel/plugin-proposal-nullish-coalescing-operator',
// FIXME: filter in production
'react-hot-loader/babel',
'@babel/transform-runtime',
'@babel/plugin-syntax-dynamic-import',
'emotion',
],
env: {
test: {
presets: [
[
'@babel/preset-env',
{
bugfixes: true,
debug: false,
},
],
'@babel/preset-react',
'@babel/typescript',
],
plugins: ['dynamic-import-node'],
},
},
ignore: ['**/*.d.ts'],
};