diff options
Diffstat (limited to 'editors/code/rollup.config.js')
-rw-r--r-- | editors/code/rollup.config.js | 29 |
1 files changed, 12 insertions, 17 deletions
diff --git a/editors/code/rollup.config.js b/editors/code/rollup.config.js index 1b222bbe7..e4b21afbd 100644 --- a/editors/code/rollup.config.js +++ b/editors/code/rollup.config.js | |||
@@ -1,30 +1,25 @@ | |||
1 | import typescript from 'rollup-plugin-typescript'; | 1 | import typescript from '@rollup/plugin-typescript'; |
2 | import resolve from 'rollup-plugin-node-resolve'; | 2 | import resolve from '@rollup/plugin-node-resolve'; |
3 | import commonjs from 'rollup-plugin-commonjs'; | 3 | import commonjs from '@rollup/plugin-commonjs'; |
4 | import sourcemaps from 'rollup-plugin-sourcemaps' | ||
5 | import nodeBuiltins from 'builtin-modules'; | 4 | import nodeBuiltins from 'builtin-modules'; |
6 | 5 | ||
7 | export default { | 6 | export default { |
8 | input: './src/extension.ts', | 7 | input: 'src/extension.ts', |
9 | plugins: [ | 8 | plugins: [ |
10 | typescript(), | 9 | typescript(), |
11 | sourcemaps(), | 10 | resolve({ |
12 | resolve(), | 11 | preferBuiltins: true |
12 | }), | ||
13 | commonjs({ | 13 | commonjs({ |
14 | namedExports: { | 14 | namedExports: { |
15 | // squelch missing import warnings | 15 | // squelch missing import warnings |
16 | 'vscode-languageclient': [ 'CreateFile', 'RenameFile' ] | 16 | 'vscode-languageclient': ['CreateFile', 'RenameFile'] |
17 | } | 17 | } |
18 | }), | 18 | }) |
19 | ], | ||
20 | // keep these as require() calls, bundle the rest | ||
21 | external: [ | ||
22 | ...nodeBuiltins, | ||
23 | 'vscode', | ||
24 | ], | 19 | ], |
20 | external: [...nodeBuiltins, 'vscode'], | ||
25 | output: { | 21 | output: { |
26 | file: './bundle/extension.js', | 22 | file: './out/extension.js', |
27 | sourcemap: true, | 23 | format: 'cjs' |
28 | format: 'cjs', | ||
29 | } | 24 | } |
30 | }; | 25 | }; |