Skip to content

Commit ae6a96a

Browse files
fix(dependencies): added react collab in external (#1268)
* fix(dependencies): added react collab in external * fix(dependencies): added react collab in external
1 parent 837d1be commit ae6a96a

File tree

2 files changed

+2
-100
lines changed

2 files changed

+2
-100
lines changed

rollup.calling-config.js

+1-99
Original file line numberDiff line numberDiff line change
@@ -1,101 +1,3 @@
1-
// import resolve from '@rollup/plugin-node-resolve';
2-
// import commonjs from '@rollup/plugin-commonjs';
3-
// // import typescript from 'rollup-plugin-typescript2';
4-
// import external from 'rollup-plugin-peer-deps-external';
5-
// // import dts from 'rollup-plugin-dts';
6-
// import visualizer from 'rollup-plugin-visualizer';
7-
// import license from 'rollup-plugin-license';
8-
// import del from 'rollup-plugin-delete';
9-
// import scss from 'rollup-plugin-scss';
10-
// import { terser } from 'rollup-plugin-terser';
11-
// import copy from 'rollup-plugin-copy';
12-
// // import typescript from 'typescript'
13-
// // import ts from 'rollup-plugin-typescript2';
14-
// const packageJson = require('./packages/node_modules/@webex/widget-call-history/package.json');
15-
16-
// const moduleName = packageJson.name.replace('@', '').replace('/', '-');
17-
// const outputFolderRootPath = './packages/node_modules/@webex/widget-call-history/';
18-
// // const packageJson = require('./packages/node_modules/@webex/widgets');
19-
20-
21-
// export default [
22-
// {
23-
// input: packageJson.src,
24-
// output: [
25-
// {
26-
// file: packageJson.main,
27-
// format: 'cjs',
28-
// sourcemap: true,
29-
// name: moduleName,
30-
// },
31-
// {
32-
// file: `${packageJson.main.slice(0, -3)}.min.js`,
33-
// format: 'cjs',
34-
// sourcemap: true,
35-
// plugins: [terser()],
36-
// },
37-
// {
38-
// file: packageJson.module,
39-
// format: 'esm',
40-
// sourcemap: true,
41-
// },
42-
// {
43-
// file: `${packageJson.module.slice(0, -3)}.min.js`,
44-
// format: 'esm',
45-
// sourcemap: true,
46-
// plugins: [terser()],
47-
// },
48-
// ],
49-
// plugins: [
50-
// del({ targets: outputFolderRootPath + 'dist/*' }),
51-
// external(),
52-
// resolve({
53-
// browser: true,
54-
// }),
55-
// commonjs(),
56-
// // ts({
57-
// // typescript
58-
// // }),
59-
// // typescript({
60-
// // tsconfig: './tsconfig.json',
61-
// // outputToFilesystem: true,
62-
// // }),
63-
// scss({
64-
// output: outputFolderRootPath + `dist/css/${moduleName}.css`,
65-
// failOnError: true,
66-
// }),
67-
// copy({
68-
// targets: [
69-
// { src: 'src/localization/locales', dest: outputFolderRootPath + 'dist/cjs/' },
70-
// {
71-
// src: 'src/localization/locales',
72-
// dest: outputFolderRootPath + 'dist/esm/',
73-
// },
74-
// ],
75-
// }),
76-
// license({
77-
// banner: `
78-
// Webex Calling
79-
// Copyright (c) <%= new Date().toISOString() %> Cisco Systems, Inc and its affiliates.
80-
// This source code is licensed under the MIT license found in the LICENSE file in the root directory of this source tree.
81-
// `,
82-
// }),
83-
// visualizer({
84-
// filename: 'coverage/bundle-analysis-esm.html',
85-
// title: 'Webex Calling Components ESM Bundle Analysis',
86-
// }),
87-
// ],
88-
// },
89-
// // /* Rollup Types */
90-
// // {
91-
// // input: outputFolderRootPath + 'esm/src/index.d.ts',
92-
// // output: [{ file: outputFolderRootPath + 'dist/esm/src/index.ts', format: 'esm' }],
93-
// // external: [/\.css$/, /\.scss$/],
94-
// // plugins: [dts()],
95-
// // },
96-
// ];
97-
98-
991
import babel from 'rollup-plugin-babel';
1002
import url from '@rollup/plugin-url';
1013
import clear from 'rollup-plugin-clear';
@@ -169,6 +71,6 @@ export default {
16971
format: 'esm',
17072
sourcemap: true
17173
}],
172-
external: ['react', 'react-dom', 'prop-types', 'classnames', '@momentum-ui/react']
74+
external: ['react', 'react-dom', 'prop-types', 'classnames', '@momentum-ui/react', '@momentum-ui/react-collaboration']
17375
};
17476

rollup.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,5 +71,5 @@ export default {
7171
format: 'esm',
7272
sourcemap: true
7373
}],
74-
external: ['react', 'react-dom', 'prop-types', 'classnames', '@momentum-ui/react']
74+
external: ['react', 'react-dom', 'prop-types', 'classnames', '@momentum-ui/react', '@momentum-ui/react-collaboration']
7575
};

0 commit comments

Comments
 (0)