mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-30 15:03:42 +00:00
28 lines
707 B
JavaScript
28 lines
707 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/extension.ts',
|
||
|
plugins: [
|
||
|
typescript(),
|
||
|
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',
|
||
|
format: 'cjs',
|
||
|
}
|
||
|
};
|