rust-analyzer/editors/code/rollup.config.js
2021-07-10 18:29:07 +03:00

22 lines
508 B
JavaScript

// @ts-check
import resolve from '@rollup/plugin-node-resolve';
import commonjs from '@rollup/plugin-commonjs';
import nodeBuiltins from 'builtin-modules';
/** @type { import('rollup').RollupOptions } */
export default {
input: 'out/src/main.js',
plugins: [
resolve({
preferBuiltins: true
}),
commonjs()
],
external: [...nodeBuiltins, 'vscode'],
output: {
file: './out/src/main.js',
format: 'cjs',
exports: 'default'
}
};