Skip to content

Commit

Permalink
use optional
Browse files Browse the repository at this point in the history
  • Loading branch information
chaitanyapotti committed Apr 20, 2023
1 parent 4731ad2 commit 95dc9e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const path = require("path");
const TsconfigPathsPlugin = require("tsconfig-paths-webpack-plugin");

function generateWebpackConfig({ pkg, currentPath, alias }) {
const depsList = Object.keys(pkg.dependencies);
const depsList = Object.keys(pkg.dependencies || {});
const baseConfig = {
resolve: {
plugins: [new TsconfigPathsPlugin()],
Expand Down

0 comments on commit 95dc9e3

Please sign in to comment.