mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-24 07:44:10 +00:00
23 lines
506 B
JavaScript
23 lines
506 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: 'named'
|
|
}
|
|
};
|