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