File tree Expand file tree Collapse file tree 2 files changed +34
-26
lines changed
Expand file tree Collapse file tree 2 files changed +34
-26
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ import typescript from "@rollup/plugin-typescript" ;
2+ import nodeResolve from "@rollup/plugin-node-resolve" ;
3+ import commonjs from "@rollup/plugin-commonjs" ;
4+ import json from "@rollup/plugin-json" ;
5+ import terser from "@rollup/plugin-terser" ;
6+ import externals from "rollup-plugin-node-externals" ;
7+
8+
9+ const productionMode = process . env . NODE_ENV === "production" ;
10+
11+ const sourceMapEnabled = ! productionMode ;
12+
13+ export default {
14+ input : "src/extension.ts" ,
15+ output : {
16+ dir : "out" ,
17+ format : "cjs" ,
18+ sourcemap : sourceMapEnabled ,
19+ } ,
20+ external : [ "vscode" ] ,
21+ plugins : [
22+ commonjs ( ) ,
23+ json ( ) ,
24+ typescript ( {
25+ compilerOptions : {
26+ module : "esnext" ,
27+ sourceMap : sourceMapEnabled ,
28+ } ,
29+ } ) ,
30+ ! productionMode && externals ( ) ,
31+ productionMode && nodeResolve ( ) ,
32+ productionMode && terser ( ) ,
33+ ] ,
34+ }
You can’t perform that action at this time.
0 commit comments