mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-11-14 00:47:18 +00:00
25 lines
672 B
JavaScript
25 lines
672 B
JavaScript
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 {
|
|
input: 'src/main.ts',
|
|
plugins: [
|
|
typescript(),
|
|
resolve({
|
|
preferBuiltins: true
|
|
}),
|
|
commonjs({
|
|
namedExports: {
|
|
// squelch missing import warnings
|
|
'vscode-languageclient': ['CreateFile', 'RenameFile', 'ErrorCodes']
|
|
}
|
|
})
|
|
],
|
|
external: [...nodeBuiltins, 'vscode'],
|
|
output: {
|
|
file: './out/main.js',
|
|
format: 'cjs'
|
|
}
|
|
};
|