mirror of
https://github.com/mattermost/mattermost.git
synced 2026-02-11 14:54:34 -05:00
42 lines
1 KiB
JavaScript
42 lines
1 KiB
JavaScript
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
// See LICENSE.txt for license information.
|
|
|
|
import typescript from '@rollup/plugin-typescript';
|
|
import copy from 'rollup-plugin-copy';
|
|
|
|
export default {
|
|
input: 'src/index.ts',
|
|
output: [
|
|
{
|
|
dir: 'dist',
|
|
format: 'cjs', // CommonJS for Playwright
|
|
sourcemap: true,
|
|
preserveModules: true, // Keep file structure
|
|
preserveModulesRoot: 'src',
|
|
},
|
|
],
|
|
plugins: [
|
|
typescript(),
|
|
copy({
|
|
targets: [{src: 'src/asset/**/*', dest: 'dist/asset'}], // Copy assets to dist/
|
|
}),
|
|
],
|
|
external: [
|
|
'@playwright/test',
|
|
'@mattermost/client',
|
|
'@mattermost/types/config',
|
|
'@axe-core/playwright',
|
|
'@percy/playwright',
|
|
'dotenv',
|
|
'luxon',
|
|
'node:fs/promises',
|
|
'node:path',
|
|
'node:fs',
|
|
'node:os',
|
|
'mime-types',
|
|
'uuid',
|
|
'async-wait-until',
|
|
'chalk',
|
|
'deepmerge',
|
|
],
|
|
};
|