2019-09-23 16:25:16 -05:00
|
|
|
import typescript from 'rollup-plugin-typescript';
|
|
|
|
import resolve from 'rollup-plugin-node-resolve';
|
|
|
|
import commonjs from 'rollup-plugin-commonjs';
|
2019-12-08 13:58:43 -06:00
|
|
|
import sourcemaps from 'rollup-plugin-sourcemaps'
|
2019-09-23 16:25:16 -05:00
|
|
|
import nodeBuiltins from 'builtin-modules';
|
|
|
|
|
|
|
|
export default {
|
|
|
|
input: './src/extension.ts',
|
|
|
|
plugins: [
|
|
|
|
typescript(),
|
2019-12-08 13:58:43 -06:00
|
|
|
sourcemaps(),
|
2019-09-23 16:25:16 -05:00
|
|
|
resolve(),
|
|
|
|
commonjs({
|
|
|
|
namedExports: {
|
|
|
|
// squelch missing import warnings
|
|
|
|
'vscode-languageclient': [ 'CreateFile', 'RenameFile' ]
|
|
|
|
}
|
|
|
|
}),
|
|
|
|
],
|
|
|
|
// keep these as require() calls, bundle the rest
|
|
|
|
external: [
|
|
|
|
...nodeBuiltins,
|
|
|
|
'vscode',
|
|
|
|
],
|
|
|
|
output: {
|
|
|
|
file: './bundle/extension.js',
|
2019-12-08 13:58:43 -06:00
|
|
|
sourcemap: true,
|
2019-09-23 16:25:16 -05:00
|
|
|
format: 'cjs',
|
|
|
|
}
|
|
|
|
};
|