Skip to content
Snippets Groups Projects
Unverified Commit a0e6f57d authored by Gunnar Holwerda's avatar Gunnar Holwerda Committed by GitHub
Browse files

Pass options through to userWebpack in withLlamaIndex (#1550)

parent e0f6cc3b
No related branches found
No related tags found
No related merge requests found
---
"llamaindex": patch
---
withLlamaIndex now passes through webpack options to the passed in customized NextJS webpack config. Before it was only passing through the config.
...@@ -41,7 +41,7 @@ export default function withLlamaIndex(config: any) { ...@@ -41,7 +41,7 @@ export default function withLlamaIndex(config: any) {
// eslint-disable-next-line @typescript-eslint/no-explicit-any // eslint-disable-next-line @typescript-eslint/no-explicit-any
config.webpack = function (webpackConfig: any, options: any) { config.webpack = function (webpackConfig: any, options: any) {
if (userWebpack) { if (userWebpack) {
webpackConfig = userWebpack(webpackConfig); webpackConfig = userWebpack(webpackConfig, options);
} }
webpackConfig.resolve.alias = { webpackConfig.resolve.alias = {
...webpackConfig.resolve.alias, ...webpackConfig.resolve.alias,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment