mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-29 14:33:29 +00:00
27 lines
707 B
JavaScript
27 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',
|
|
}
|
|
};
|