aboutsummaryrefslogtreecommitdiff
path: root/editors
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2019-12-09 14:27:42 +0000
committerGitHub <[email protected]>2019-12-09 14:27:42 +0000
commit7819aa8862a01973853ca622df264920e54f45ce (patch)
tree518d905046d83daa93655b20aceb819bd6fd08a3 /editors
parente3a9e806bae14fbeb5d7369d7b7871ba87353316 (diff)
parent81ce9833a59756b85c0528cbc76dfb4b272d651c (diff)
Merge #2510
2510: Add sourcemap for rollup and fix launch.json outfiles r=matklad a=edwin0cheng Fix #2509 Co-authored-by: Edwin Cheng <[email protected]>
Diffstat (limited to 'editors')
-rw-r--r--editors/code/package-lock.json53
-rw-r--r--editors/code/package.json1
-rw-r--r--editors/code/rollup.config.js3
3 files changed, 57 insertions, 0 deletions
diff --git a/editors/code/package-lock.json b/editors/code/package-lock.json
index 4e8ed7048..b1baa437e 100644
--- a/editors/code/package-lock.json
+++ b/editors/code/package-lock.json
@@ -131,6 +131,12 @@
131 "sprintf-js": "~1.0.2" 131 "sprintf-js": "~1.0.2"
132 } 132 }
133 }, 133 },
134 "atob": {
135 "version": "2.1.2",
136 "resolved": "https://registry.npmjs.org/atob/-/atob-2.1.2.tgz",
137 "integrity": "sha512-Wm6ukoaOGJi/73p/cl2GvLjTI5JM1k/O14isD73YML8StrH/7/lRFgmg8nICZgD3bZZvjwCGxtMOD3wWNAu8cg==",
138 "dev": true
139 },
134 "azure-devops-node-api": { 140 "azure-devops-node-api": {
135 "version": "7.2.0", 141 "version": "7.2.0",
136 "resolved": "https://registry.npmjs.org/azure-devops-node-api/-/azure-devops-node-api-7.2.0.tgz", 142 "resolved": "https://registry.npmjs.org/azure-devops-node-api/-/azure-devops-node-api-7.2.0.tgz",
@@ -324,6 +330,12 @@
324 "integrity": "sha1-9lNNFRSCabIDUue+4m9QH5oZEpA=", 330 "integrity": "sha1-9lNNFRSCabIDUue+4m9QH5oZEpA=",
325 "dev": true 331 "dev": true
326 }, 332 },
333 "decode-uri-component": {
334 "version": "0.2.0",
335 "resolved": "https://registry.npmjs.org/decode-uri-component/-/decode-uri-component-0.2.0.tgz",
336 "integrity": "sha1-6zkTMzRYd1y4TNGh+uBiEGu4dUU=",
337 "dev": true
338 },
327 "define-properties": { 339 "define-properties": {
328 "version": "1.1.3", 340 "version": "1.1.3",
329 "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.1.3.tgz", 341 "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.1.3.tgz",
@@ -1084,6 +1096,12 @@
1084 "path-parse": "^1.0.6" 1096 "path-parse": "^1.0.6"
1085 } 1097 }
1086 }, 1098 },
1099 "resolve-url": {
1100 "version": "0.2.1",
1101 "resolved": "https://registry.npmjs.org/resolve-url/-/resolve-url-0.2.1.tgz",
1102 "integrity": "sha1-LGN/53yJOv0qZj/iGqkIAGjiBSo=",
1103 "dev": true
1104 },
1087 "rimraf": { 1105 "rimraf": {
1088 "version": "2.7.1", 1106 "version": "2.7.1",
1089 "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.7.1.tgz", 1107 "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.7.1.tgz",
@@ -1158,6 +1176,16 @@
1158 } 1176 }
1159 } 1177 }
1160 }, 1178 },
1179 "rollup-plugin-sourcemaps": {
1180 "version": "0.4.2",
1181 "resolved": "https://registry.npmjs.org/rollup-plugin-sourcemaps/-/rollup-plugin-sourcemaps-0.4.2.tgz",
1182 "integrity": "sha1-YhJaqUCHqt97g+9N+vYptHMTXoc=",
1183 "dev": true,
1184 "requires": {
1185 "rollup-pluginutils": "^2.0.1",
1186 "source-map-resolve": "^0.5.0"
1187 }
1188 },
1161 "rollup-plugin-typescript": { 1189 "rollup-plugin-typescript": {
1162 "version": "1.0.1", 1190 "version": "1.0.1",
1163 "resolved": "https://registry.npmjs.org/rollup-plugin-typescript/-/rollup-plugin-typescript-1.0.1.tgz", 1191 "resolved": "https://registry.npmjs.org/rollup-plugin-typescript/-/rollup-plugin-typescript-1.0.1.tgz",
@@ -1241,6 +1269,25 @@
1241 } 1269 }
1242 } 1270 }
1243 }, 1271 },
1272 "source-map-resolve": {
1273 "version": "0.5.2",
1274 "resolved": "https://registry.npmjs.org/source-map-resolve/-/source-map-resolve-0.5.2.tgz",
1275 "integrity": "sha512-MjqsvNwyz1s0k81Goz/9vRBe9SZdB09Bdw+/zYyO+3CuPk6fouTaxscHkgtE8jKvf01kVfl8riHzERQ/kefaSA==",
1276 "dev": true,
1277 "requires": {
1278 "atob": "^2.1.1",
1279 "decode-uri-component": "^0.2.0",
1280 "resolve-url": "^0.2.1",
1281 "source-map-url": "^0.4.0",
1282 "urix": "^0.1.0"
1283 }
1284 },
1285 "source-map-url": {
1286 "version": "0.4.0",
1287 "resolved": "https://registry.npmjs.org/source-map-url/-/source-map-url-0.4.0.tgz",
1288 "integrity": "sha1-PpNdfd1zYxuXZZlW1VEo6HtQhKM=",
1289 "dev": true
1290 },
1244 "sourcemap-codec": { 1291 "sourcemap-codec": {
1245 "version": "1.4.6", 1292 "version": "1.4.6",
1246 "resolved": "https://registry.npmjs.org/sourcemap-codec/-/sourcemap-codec-1.4.6.tgz", 1293 "resolved": "https://registry.npmjs.org/sourcemap-codec/-/sourcemap-codec-1.4.6.tgz",
@@ -1409,6 +1456,12 @@
1409 "integrity": "sha1-Tz+1OxBuYJf8+ctBCfKl6b36UCI=", 1456 "integrity": "sha1-Tz+1OxBuYJf8+ctBCfKl6b36UCI=",
1410 "dev": true 1457 "dev": true
1411 }, 1458 },
1459 "urix": {
1460 "version": "0.1.0",
1461 "resolved": "https://registry.npmjs.org/urix/-/urix-0.1.0.tgz",
1462 "integrity": "sha1-2pN/emLiH+wf0Y1Js1wpNQZ6bHI=",
1463 "dev": true
1464 },
1412 "url-join": { 1465 "url-join": {
1413 "version": "1.1.0", 1466 "version": "1.1.0",
1414 "resolved": "https://registry.npmjs.org/url-join/-/url-join-1.1.0.tgz", 1467 "resolved": "https://registry.npmjs.org/url-join/-/url-join-1.1.0.tgz",
diff --git a/editors/code/package.json b/editors/code/package.json
index 84a45945f..ae2049c57 100644
--- a/editors/code/package.json
+++ b/editors/code/package.json
@@ -48,6 +48,7 @@
48 "rollup-plugin-commonjs": "^10.1.0", 48 "rollup-plugin-commonjs": "^10.1.0",
49 "rollup-plugin-node-resolve": "^5.2.0", 49 "rollup-plugin-node-resolve": "^5.2.0",
50 "rollup-plugin-typescript": "^1.0.1", 50 "rollup-plugin-typescript": "^1.0.1",
51 "rollup-plugin-sourcemaps": "^0.4.2",
51 "shx": "^0.3.1", 52 "shx": "^0.3.1",
52 "tslint": "^5.20.1", 53 "tslint": "^5.20.1",
53 "tslint-config-prettier": "^1.18.0", 54 "tslint-config-prettier": "^1.18.0",
diff --git a/editors/code/rollup.config.js b/editors/code/rollup.config.js
index a023b8c3f..1b222bbe7 100644
--- a/editors/code/rollup.config.js
+++ b/editors/code/rollup.config.js
@@ -1,12 +1,14 @@
1import typescript from 'rollup-plugin-typescript'; 1import typescript from 'rollup-plugin-typescript';
2import resolve from 'rollup-plugin-node-resolve'; 2import resolve from 'rollup-plugin-node-resolve';
3import commonjs from 'rollup-plugin-commonjs'; 3import commonjs from 'rollup-plugin-commonjs';
4import sourcemaps from 'rollup-plugin-sourcemaps'
4import nodeBuiltins from 'builtin-modules'; 5import nodeBuiltins from 'builtin-modules';
5 6
6export default { 7export default {
7 input: './src/extension.ts', 8 input: './src/extension.ts',
8 plugins: [ 9 plugins: [
9 typescript(), 10 typescript(),
11 sourcemaps(),
10 resolve(), 12 resolve(),
11 commonjs({ 13 commonjs({
12 namedExports: { 14 namedExports: {
@@ -22,6 +24,7 @@ export default {
22 ], 24 ],
23 output: { 25 output: {
24 file: './bundle/extension.js', 26 file: './bundle/extension.js',
27 sourcemap: true,
25 format: 'cjs', 28 format: 'cjs',
26 } 29 }
27}; 30};