Mono repo -> Master (#22553)
Combines the following repositories into one: https://github.com/mattermost/mattermost-server https://github.com/mattermost/mattermost-webapp https://github.com/mattermost/focalboard https://github.com/mattermost/mattermost-plugin-playbooks
Этот коммит содержится в:
44
webapp/platform/components/rollup.config.js
Обычный файл
44
webapp/platform/components/rollup.config.js
Обычный файл
@@ -0,0 +1,44 @@
|
||||
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
||||
// See LICENSE.txt for license information.
|
||||
|
||||
// eslint-disable-next-line import/no-unresolved
|
||||
import resolve from '@rollup/plugin-node-resolve';
|
||||
import commonjs from '@rollup/plugin-commonjs';
|
||||
import scss from 'rollup-plugin-scss';
|
||||
import typescript from '@rollup/plugin-typescript';
|
||||
|
||||
import packagejson from './package.json';
|
||||
|
||||
const externals = [
|
||||
...Object.keys(packagejson.dependencies || {}),
|
||||
...Object.keys(packagejson.peerDependencies || {}),
|
||||
'mattermost-redux',
|
||||
'reselect',
|
||||
];
|
||||
|
||||
export default [
|
||||
{
|
||||
input: 'src/index.tsx',
|
||||
output: [
|
||||
{
|
||||
sourcemap: true,
|
||||
file: packagejson.module,
|
||||
format: 'es',
|
||||
globals: {'styled-components': 'styled'},
|
||||
},
|
||||
],
|
||||
plugins: [
|
||||
scss(),
|
||||
resolve({
|
||||
browser: true,
|
||||
extensions: ['.ts', '.tsx'],
|
||||
}),
|
||||
commonjs(),
|
||||
typescript(),
|
||||
],
|
||||
external: (pkg) => externals.some((external) => pkg.startsWith(external)),
|
||||
watch: {
|
||||
clearScreen: false,
|
||||
},
|
||||
},
|
||||
];
|
||||
Ссылка в новой задаче
Block a user