Skip to content

Commit

Permalink
Merge pull request #816 from depcheck/contextDirFakePath
Browse files Browse the repository at this point in the history
  • Loading branch information
rumpl committed Jul 17, 2023
2 parents debdd09 + d3f37eb commit c91c14c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/special/webpack.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,11 @@ async function loadNextWebpackConfig(filepath) {
watchOptions: { ignored: [] },
};

const fakeContext = { webpack: fakeWebpack, defaultLoaders: {} };
const fakeContext = {
webpack: fakeWebpack,
defaultLoaders: {},
dir: 'fakePath',
};

try {
const nextConfig = await import(filepath);
Expand Down

0 comments on commit c91c14c

Please sign in to comment.