2019-12-30 08:51:44 +00:00
|
|
|
import typescript from '@rollup/plugin-typescript';
|
|
|
|
import resolve from '@rollup/plugin-node-resolve';
|
|
|
|
import commonjs from '@rollup/plugin-commonjs';
|
|
|
|
import nodeBuiltins from 'builtin-modules';
|
|
|
|
|
|
|
|
export default {
|
2019-12-30 11:19:58 +00:00
|
|
|
input: 'src/main.ts',
|
2019-12-30 08:51:44 +00:00
|
|
|
plugins: [
|
|
|
|
typescript(),
|
|
|
|
resolve({
|
|
|
|
preferBuiltins: true
|
|
|
|
}),
|
|
|
|
commonjs({
|
|
|
|
namedExports: {
|
|
|
|
// squelch missing import warnings
|
2020-01-15 10:47:56 +00:00
|
|
|
'vscode-languageclient': ['CreateFile', 'RenameFile', 'ErrorCodes', 'WorkDoneProgress', 'WorkDoneProgressBegin', 'WorkDoneProgressReport', 'WorkDoneProgressEnd']
|
2019-12-30 08:51:44 +00:00
|
|
|
}
|
|
|
|
})
|
|
|
|
],
|
|
|
|
external: [...nodeBuiltins, 'vscode'],
|
|
|
|
output: {
|
2019-12-30 11:19:58 +00:00
|
|
|
file: './out/main.js',
|
2019-12-30 08:51:44 +00:00
|
|
|
format: 'cjs'
|
|
|
|
}
|
|
|
|
};
|