mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-24 15:54:15 +00:00
9b8e3b80ee
It seems like just calling typescript directly is simpler and more reliable?
24 lines
692 B
JavaScript
24 lines
692 B
JavaScript
import resolve from '@rollup/plugin-node-resolve';
|
|
import commonjs from '@rollup/plugin-commonjs';
|
|
import nodeBuiltins from 'builtin-modules';
|
|
|
|
export default {
|
|
input: 'out/main.js',
|
|
plugins: [
|
|
resolve({
|
|
preferBuiltins: true
|
|
}),
|
|
commonjs({
|
|
namedExports: {
|
|
// squelch missing import warnings
|
|
'vscode-languageclient': ['CreateFile', 'RenameFile', 'ErrorCodes', 'WorkDoneProgress', 'WorkDoneProgressBegin', 'WorkDoneProgressReport', 'WorkDoneProgressEnd']
|
|
}
|
|
})
|
|
],
|
|
external: [...nodeBuiltins, 'vscode'],
|
|
output: {
|
|
file: './out/main.js',
|
|
format: 'cjs'
|
|
}
|
|
};
|