Skip to content

Commit e37b0c4

Browse files
committed
libraryTarget is depricated in favor of library.type
1 parent 87441dd commit e37b0c4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

webpack.config.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@ export const baseConfig: Configuration = {
3131
// the bundle is stored in the 'dist' folder (check package.json), 📖 -> https://webpack.js.org/configuration/output/
3232
filename: "extension.js",
3333
path: PATHS.dist,
34-
libraryTarget: "commonjs2",
34+
library: {
35+
type: "commonjs2",
36+
},
3537
devtoolModuleFilenameTemplate: "../[resource-path]", // Removes the webpack:/// prefix from source maps
3638
},
3739
module: {

0 commit comments

Comments
 (0)