Skip to content

Commit 95dc9e3

Browse files
use optional
1 parent 4731ad2 commit 95dc9e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

webpack.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ const path = require("path");
33
const TsconfigPathsPlugin = require("tsconfig-paths-webpack-plugin");
44

55
function generateWebpackConfig({ pkg, currentPath, alias }) {
6-
const depsList = Object.keys(pkg.dependencies);
6+
const depsList = Object.keys(pkg.dependencies || {});
77
const baseConfig = {
88
resolve: {
99
plugins: [new TsconfigPathsPlugin()],

0 commit comments

Comments
 (0)