|
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 |
| - |
99 | 1 | import babel from 'rollup-plugin-babel';
|
100 | 2 | import url from '@rollup/plugin-url';
|
101 | 3 | import clear from 'rollup-plugin-clear';
|
@@ -169,6 +71,6 @@ export default {
|
169 | 71 | format: 'esm',
|
170 | 72 | sourcemap: true
|
171 | 73 | }],
|
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'] |
173 | 75 | };
|
174 | 76 |
|
0 commit comments