1 В избранное 0 Ответвления 0

OSCHINA-MIRROR/kubesphere-console

Присоединиться к Gitlife
Откройте для себя и примите участие в публичных проектах с открытым исходным кодом с участием более 10 миллионов разработчиков. Приватные репозитории также полностью бесплатны :)
Присоединиться бесплатно
Клонировать/Скачать
babel.config.js 1.9 КБ
Копировать Редактировать Web IDE Исходные данные Просмотреть построчно История
leoliu Отправлено 24.03.2021 08:12 e0539d9
/*
* This file is part of KubeSphere Console.
* Copyright (C) 2019 The KubeSphere Console Authors.
*
* KubeSphere Console is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* KubeSphere Console is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with KubeSphere Console. If not, see <https://www.gnu.org/licenses/>.
*/
module.exports = {
presets: [
[
'@babel/preset-env',
{
corejs: '2',
useBuiltIns: 'entry',
targets: ['> 5%', 'ie 9'],
modules: 'commonjs',
exclude: ['proposal-dynamic-import'],
},
],
'@babel/preset-react',
],
plugins: [
'@babel/plugin-transform-runtime',
[
'@babel/plugin-proposal-decorators',
{
legacy: true,
},
],
['@babel/plugin-proposal-class-properties', { loose: true }],
[
'transform-imports',
{
lodash: {
transform: 'lodash/${member}',
preventFullImport: true,
},
'components/Base': {
transform: 'components/Base/${member}',
preventFullImport: true,
},
'components/Inputs': {
transform: 'components/Inputs/${member}',
preventFullImport: true,
},
},
],
'recharts',
],
env: {
production: {
plugins: [
[
'transform-react-remove-prop-types',
{
removeImport: true,
ignoreFilenames: ['node_modules'],
},
],
],
},
},
}

Опубликовать ( 0 )

Вы можете оставить комментарий после Вход в систему

1
https://api.gitlife.ru/oschina-mirror/kubesphere-console.git
git@api.gitlife.ru:oschina-mirror/kubesphere-console.git
oschina-mirror
kubesphere-console
kubesphere-console
master