We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4731ad2 commit 95dc9e3Copy full SHA for 95dc9e3
webpack.config.js
@@ -3,7 +3,7 @@ const path = require("path");
3
const TsconfigPathsPlugin = require("tsconfig-paths-webpack-plugin");
4
5
function generateWebpackConfig({ pkg, currentPath, alias }) {
6
- const depsList = Object.keys(pkg.dependencies);
+ const depsList = Object.keys(pkg.dependencies || {});
7
const baseConfig = {
8
resolve: {
9
plugins: [new TsconfigPathsPlugin()],
0 commit comments