2019-12-30 02:51:44 -06: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 05:19:58 -06:00
|
|
|
input: 'src/main.ts',
|
2019-12-30 02:51:44 -06:00
|
|
|
plugins: [
|
|
|
|
typescript(),
|
|
|
|
resolve({
|
|
|
|
preferBuiltins: true
|
|
|
|
}),
|
|
|
|
commonjs({
|
|
|
|
namedExports: {
|
|
|
|
// squelch missing import warnings
|
2019-12-30 15:18:16 -06:00
|
|
|
'vscode-languageclient': ['CreateFile', 'RenameFile', 'ErrorCodes']
|
2019-12-30 02:51:44 -06:00
|
|
|
}
|
|
|
|
})
|
|
|
|
],
|
|
|
|
external: [...nodeBuiltins, 'vscode'],
|
|
|
|
output: {
|
2019-12-30 05:19:58 -06:00
|
|
|
file: './out/main.js',
|
2019-12-30 02:51:44 -06:00
|
|
|
format: 'cjs'
|
|
|
|
}
|
|
|
|
};
|