Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
LlamaIndexTS
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mirrored_repos
MachineLearning
run-llama
LlamaIndexTS
Commits
a0e6f57d
Unverified
Commit
a0e6f57d
authored
3 months ago
by
Gunnar Holwerda
Committed by
GitHub
3 months ago
Browse files
Options
Downloads
Patches
Plain Diff
Pass options through to userWebpack in withLlamaIndex (#1550)
parent
e0f6cc3b
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.changeset/weak-cats-smash.md
+5
-0
5 additions, 0 deletions
.changeset/weak-cats-smash.md
packages/llamaindex/src/next.ts
+1
-1
1 addition, 1 deletion
packages/llamaindex/src/next.ts
with
6 additions
and
1 deletion
.changeset/weak-cats-smash.md
0 → 100644
+
5
−
0
View file @
a0e6f57d
---
"
llamaindex"
:
patch
---
withLlamaIndex now passes through webpack options to the passed in customized NextJS webpack config. Before it was only passing through the config.
This diff is collapsed.
Click to expand it.
packages/llamaindex/src/next.ts
+
1
−
1
View file @
a0e6f57d
...
@@ -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
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment