Skip to content

Commit 8c102cb

Browse files
committed
Update npm packages
1 parent cc3f2f2 commit 8c102cb

File tree

3 files changed

+47
-46
lines changed

3 files changed

+47
-46
lines changed

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2111,8 +2111,8 @@
21112111
"sinon": "^15.0.1",
21122112
"ts-loader": "^9.3.1",
21132113
"typescript": "^4.7.2",
2114-
"webpack": "^5.76.0",
2115-
"webpack-cli": "^4.7.2"
2114+
"webpack": "^5.99.6",
2115+
"webpack-cli": "^4.10.0"
21162116
},
21172117
"dependencies": {
21182118
"ag-grid-community": "^31.3.2",

webpack.config.js

Lines changed: 41 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -6,48 +6,49 @@ const path = require('path');
66
const CopyPlugin = require('copy-webpack-plugin');
77

88
module.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: /\.ts$/,
33-
exclude: /node_modules/,
34-
use: [
35-
{
36-
loader: 'ts-loader'
37-
}
27+
extensions: ['.ts', '.js']
28+
},
29+
module: {
30+
rules: [
31+
{
32+
test: /\.ts$/,
33+
exclude: /node_modules/,
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

Comments
 (0)