forked from angular/vscode-ng-language-service
-
Notifications
You must be signed in to change notification settings - Fork 0
/
rollup.config.js
44 lines (43 loc) · 878 Bytes
/
rollup.config.js
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
import * as fs from 'fs';
import commonjs from 'rollup-plugin-commonjs';
module.exports = [
{
input: 'dist/client/extension.js',
output: {
file: 'dist/npm/index.js',
format: 'cjs',
exports: 'named',
},
external: [
'path',
'vscode',
'vscode-languageclient',
],
plugins: [
commonjs(),
],
},
{
input: 'dist/server/server.js',
output: {
file: 'dist/npm/server/index.js',
format: 'amd',
banner: fs.readFileSync('dist/banner/banner.rollup.js', 'utf8'),
},
external: [
'fs',
'path',
'typescript/lib/tsserverlibrary',
'vscode-languageserver',
'vscode-uri',
],
plugins: [
commonjs({
ignore: [
// leave require statements unconverted.
'conditional-runtime-dependency',
],
}),
],
},
];