rust-analyzer/editors/code/rollup.config.js

23 lines
506 B
JavaScript
Raw Normal View History

// @ts-check
2019-12-30 08:51:44 +00:00
import resolve from '@rollup/plugin-node-resolve';
import commonjs from '@rollup/plugin-commonjs';
import nodeBuiltins from 'builtin-modules';
/** @type { import('rollup').RollupOptions } */
2019-12-30 08:51:44 +00:00
export default {
2020-05-20 18:03:49 +00:00
input: 'out/src/main.js',
2019-12-30 08:51:44 +00:00
plugins: [
resolve({
preferBuiltins: true
}),
2020-06-24 11:09:12 +00:00
commonjs()
2019-12-30 08:51:44 +00:00
],
external: [...nodeBuiltins, 'vscode'],
output: {
2020-05-20 18:03:49 +00:00
file: './out/src/main.js',
2020-02-15 21:04:51 +00:00
format: 'cjs',
exports: 'named'
2019-12-30 08:51:44 +00:00
}
};