@@ -6,48 +6,49 @@ const path = require('path');
66const CopyPlugin = require ( 'copy-webpack-plugin' ) ;
77
88module . exports = {
9- target : 'node' , // vscode extensions run in a Node.js-context 📖 -> https://webpack.js.org/configuration/node/
9+ target : 'node' , // vscode extensions run in a Node.js-context 📖 -> https://webpack.js.org/configuration/node/
1010
11- entry : './src/extension.ts' , // the entry point of this extension, 📖 -> https://webpack.js.org/configuration/entry-context/
12- output : {
11+ entry : './src/extension.ts' , // the entry point of this extension, 📖 -> https://webpack.js.org/configuration/entry-context/
12+ output : {
1313 // the bundle is stored in the 'dist' folder (check package.json), 📖 -> https://webpack.js.org/configuration/output/
14- path : path . resolve ( __dirname , 'dist' ) ,
15- filename : 'extension.js' ,
16- libraryTarget : 'commonjs2' ,
17- devtoolModuleFilenameTemplate : '../[resource-path]'
18- } ,
19- devtool : 'source-map' ,
20- externals : {
21- 'utf-8-validate' : 'commonjs utf-8-validate' ,
22- bufferutil : 'commonjs bufferutil' ,
23- vscode : 'commonjs vscode' // the vscode-module is created on-the-fly and must be excluded. Add other modules that cannot be webpack'ed, 📖 -> https://webpack.js.org/configuration/externals/
24- } ,
25- resolve : {
14+ path : path . resolve ( __dirname , 'dist' ) ,
15+ filename : 'extension.js' ,
16+ libraryTarget : 'commonjs2' ,
17+ devtoolModuleFilenameTemplate : '../[resource-path]'
18+ } ,
19+ devtool : 'source-map' ,
20+ externals : {
21+ 'utf-8-validate' : 'commonjs utf-8-validate' ,
22+ bufferutil : 'commonjs bufferutil' ,
23+ vscode : 'commonjs vscode' // the vscode-module is created on-the-fly and must be excluded. Add other modules that cannot be webpack'ed, 📖 -> https://webpack.js.org/configuration/externals/
24+ } ,
25+ resolve : {
2626 // support reading TypeScript and JavaScript files, 📖 -> https://github.com/TypeStrong/ts-loader
27- extensions : [ '.ts' , '.js' ]
28- } ,
29- module : {
30- rules : [
31- {
32- test : / \. t s $ / ,
33- exclude : / n o d e _ m o d u l e s / ,
34- use : [
35- {
36- loader : 'ts-loader'
37- }
27+ extensions : [ '.ts' , '.js' ]
28+ } ,
29+ module : {
30+ rules : [
31+ {
32+ test : / \. t s $ / ,
33+ exclude : / n o d e _ m o d u l e s / ,
34+ use : [
35+ {
36+ loader : 'ts-loader' ,
37+ }
38+ ]
39+ }
3840 ]
39- }
40- ]
41- } ,
42- plugins : [
43- new CopyPlugin ( {
44- patterns : [
45- { from : './node_modules/jquery/dist/jquery.min.js' , to : 'resources' } ,
46- { from : './node_modules/jquery.json-viewer/json-viewer' , to : 'resources' } ,
47- { from : './node_modules/ag-grid-community/dist/ag-grid-community.min.noStyle.js' , to : 'resources' } ,
48- { from : './node_modules/ag-grid-community/styles/ag-grid.min.css' , to : 'resources' } ,
49- { from : './node_modules/ag-grid-community/styles/ag-theme-balham.min.css' , to : 'resources' } ,
50- ]
51- } ) ,
52- ] ,
41+ } ,
42+ plugins : [
43+ // eslint-disable-next-line @typescript-eslint/no-unsafe-call
44+ new CopyPlugin ( {
45+ patterns : [
46+ { from : './node_modules/jquery/dist/jquery.min.js' , to : 'resources' } ,
47+ { from : './node_modules/jquery.json-viewer/json-viewer' , to : 'resources' } ,
48+ { from : './node_modules/ag-grid-community/dist/ag-grid-community.min.noStyle.js' , to : 'resources' } ,
49+ { from : './node_modules/ag-grid-community/styles/ag-grid.min.css' , to : 'resources' } ,
50+ { from : './node_modules/ag-grid-community/styles/ag-theme-balham.min.css' , to : 'resources' } ,
51+ ]
52+ } ) ,
53+ ] ,
5354} ;
0 commit comments