2020-03-18 11:51:17 -05:00
|
|
|
// @ts-check
|
|
|
|
|
2019-12-30 02:51:44 -06:00
|
|
|
import resolve from '@rollup/plugin-node-resolve';
|
|
|
|
import commonjs from '@rollup/plugin-commonjs';
|
|
|
|
import nodeBuiltins from 'builtin-modules';
|
|
|
|
|
2020-03-18 11:51:17 -05:00
|
|
|
/** @type { import('rollup').RollupOptions } */
|
2019-12-30 02:51:44 -06:00
|
|
|
export default {
|
2020-02-03 10:39:34 -06:00
|
|
|
input: 'out/main.js',
|
2019-12-30 02:51:44 -06:00
|
|
|
plugins: [
|
|
|
|
resolve({
|
|
|
|
preferBuiltins: true
|
|
|
|
}),
|
|
|
|
commonjs({
|
|
|
|
namedExports: {
|
|
|
|
// squelch missing import warnings
|
2020-01-15 04:47:56 -06:00
|
|
|
'vscode-languageclient': ['CreateFile', 'RenameFile', 'ErrorCodes', 'WorkDoneProgress', 'WorkDoneProgressBegin', 'WorkDoneProgressReport', 'WorkDoneProgressEnd']
|
2019-12-30 02:51:44 -06:00
|
|
|
}
|
|
|
|
})
|
|
|
|
],
|
|
|
|
external: [...nodeBuiltins, 'vscode'],
|
|
|
|
output: {
|
2019-12-30 05:19:58 -06:00
|
|
|
file: './out/main.js',
|
2020-02-15 15:04:51 -06:00
|
|
|
format: 'cjs',
|
|
|
|
exports: 'named'
|
2019-12-30 02:51:44 -06:00
|
|
|
}
|
|
|
|
};
|