-
Notifications
You must be signed in to change notification settings - Fork 2
/
rollup.config.js.copy
52 lines (51 loc) · 1.04 KB
/
rollup.config.js.copy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
/*
* @Author: your name
* @Date: 2020-03-14 14:45:36
* @LastEditTime: 2020-05-18 16:26:35
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edit
* @FilePath: \DevUI-Language-Support\rollup.config.js
*/
import * as fs from 'fs';
import commonjs from 'rollup-plugin-commonjs';
module.exports = [
{
input: 'client/out/extension.js',
output: {
file: 'Release/client/index.js',
format: 'cjs',
exports: 'named',
},
external: [
'path',
'vscode',
'vscode-languageclient',
],
plugins: [
commonjs(),
],
},
{
input: 'server/out/server.js',
output: {
file: 'Release/server/server.js',
},
external: [
'fs',
'path',
'typescript/lib/tsserverlibrary',
'vscode-languageserver',
'vscode-uri',
'log4js',
'vscode-languageserver-textdocument',
'rollup-plugin-commonjs',
],
plugins: [
commonjs({
namedExports: {
'./lib/main.js': ['__moduleExports']
}
}),
],
},
];