File tree Expand file tree Collapse file tree 3 files changed +35
-3
lines changed Expand file tree Collapse file tree 3 files changed +35
-3
lines changed Original file line number Diff line number Diff line change 260
260
"@types/lodash" : " ^4.14.106" ,
261
261
"@types/mocha" : " ^5.2.2" ,
262
262
"@types/node" : " *" ,
263
+ "@types/webpack" : " ^4.4.10" ,
263
264
"css-loader" : " ^0.28.11" ,
264
265
"del" : " ^3.0.0" ,
265
266
"gulp" : " 3.9.1" ,
Original file line number Diff line number Diff line change 2
2
* Copyright (c) Microsoft Corporation. All rights reserved.
3
3
* Licensed under the MIT License. See License.txt in the project root for license information.
4
4
*--------------------------------------------------------------------------------------------*/
5
+
6
+ //@ts -check
7
+
5
8
const path = require ( 'path' ) ;
9
+ const webpack = require ( 'webpack' ) ;
6
10
7
- module . exports = [ {
11
+ /** @type webpack.Configuration */
12
+ const webview = {
13
+ name : 'webiew' ,
8
14
entry : {
9
15
index : './preview-src/index.ts'
10
16
} ,
@@ -29,7 +35,11 @@ module.exports = [{
29
35
filename : '[name].js' ,
30
36
path : path . resolve ( __dirname , 'media' )
31
37
}
32
- } , {
38
+ } ;
39
+
40
+ /** @type webpack.Configuration */
41
+ const extension = {
42
+ name : 'extension' ,
33
43
target : 'node' ,
34
44
entry : {
35
45
extension : './src/extension.ts'
@@ -59,4 +69,6 @@ module.exports = [{
59
69
externals : {
60
70
'vscode' : 'commonjs vscode' ,
61
71
} ,
62
- } ] ;
72
+ } ;
73
+
74
+ module . exports = [ webview , extension ] ;
Original file line number Diff line number Diff line change 56
56
version "10.3.2"
57
57
resolved "https://registry.yarnpkg.com/@types/node/-/node-10.3.2.tgz#3840ec6c12556fdda6e0e6d036df853101d732a4"
58
58
59
+ " @types/tapable@* " :
60
+ version "1.0.4"
61
+ resolved "https://registry.yarnpkg.com/@types/tapable/-/tapable-1.0.4.tgz#b4ffc7dc97b498c969b360a41eee247f82616370"
62
+
63
+ " @types/uglify-js@* " :
64
+ version "3.0.3"
65
+ resolved "https://registry.yarnpkg.com/@types/uglify-js/-/uglify-js-3.0.3.tgz#801a5ca1dc642861f47c46d14b700ed2d610840b"
66
+ dependencies :
67
+ source-map "^0.6.1"
68
+
69
+ " @types/webpack@^4.4.10 " :
70
+ version "4.4.10"
71
+ resolved "https://registry.yarnpkg.com/@types/webpack/-/webpack-4.4.10.tgz#2ecf12589142bc531549140612815b7d8b076358"
72
+ dependencies :
73
+ " @types/node" " *"
74
+ " @types/tapable" " *"
75
+ " @types/uglify-js" " *"
76
+ source-map "^0.6.0"
77
+
59
78
" @types/ws@^5.1.2 " :
60
79
version "5.1.2"
61
80
resolved "https://registry.yarnpkg.com/@types/ws/-/ws-5.1.2.tgz#f02d3b1cd46db7686734f3ce83bdf46c49decd64"
You can’t perform that action at this time.
0 commit comments