Skip to content
Merged
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
08be973
update to-do
brillout Feb 25, 2026
4c95206
[AI] Resolve non-script imports to constant string in esbuild transpi…
brillout Feb 25, 2026
dbbc371
comment
brillout Feb 25, 2026
78a5297
wip
brillout Feb 26, 2026
8498b7f
Revert "wip"
brillout Feb 26, 2026
f19c1c5
update to-do
brillout Feb 26, 2026
39006e4
[AI] Handle `with { type: 'runtime' }` imports as static file stubs
brillout Feb 26, 2026
d04e852
[AI] Fix: script files with 'runtime' attr should be pointer imports,…
brillout Feb 26, 2026
9dfdeb2
[AI] Stub all named exports for vike-static-file imports
brillout Feb 26, 2026
91660ac
[AI] Use transformPointerImports for with{type:'runtime'} static stubs
brillout Feb 26, 2026
7d87f83
[AI] Fix STATIC_FILE_NOT_AVAILABLE strings leaking into runtime
brillout Feb 26, 2026
cdfb9d8
[AI] Deduplicate import statements in virtual file serializer
brillout Feb 26, 2026
56a44ed
Revert "[AI] Deduplicate import statements in virtual file serializer"
brillout Feb 26, 2026
e14ae66
[AI] Fix STATIC_FILE_NOT_AVAILABLE storing absolute filesystem paths
brillout Feb 26, 2026
84e6096
Revert "[AI] Fix STATIC_FILE_NOT_AVAILABLE storing absolute filesyste…
brillout Feb 26, 2026
6ac9c7e
[AI] Fix wrong import paths: use pointer imports for with{type:runtime}
brillout Feb 26, 2026
f1e79de
[AI] Strip with{type:'runtime'} import attributes from runtime bundles
brillout Feb 26, 2026
73de4ed
Revert "[AI] Strip with{type:'runtime'} import attributes from runtim…
brillout Feb 26, 2026
fe3c2a9
[AI] Revert STATIC_FILE_NOT_AVAILABLE handling from serializeConfigVa…
brillout Feb 26, 2026
64a0ab7
[AI] Fix: skip config-time loading of non-plain-script value files
brillout Feb 26, 2026
0619a5a
Revert "[AI] Fix: skip config-time loading of non-plain-script value …
brillout Feb 26, 2026
9605124
Revert "[AI] Fix wrong import paths: use pointer imports for with{typ…
brillout Feb 26, 2026
a0cc24a
[AI] Fix: set valueIsLoadedWithImport=true when env.client or env.server
brillout Feb 26, 2026
cac4792
Reapply "[AI] Strip with{type:'runtime'} import attributes from runti…
brillout Feb 26, 2026
b2f4057
fix missing import
brillout Feb 26, 2026
8b58308
Reapply "[AI] Fix wrong import paths: use pointer imports for with{ty…
brillout Feb 26, 2026
841553f
rm STATIC_FILE_NOT_AVAILABLE
brillout Feb 26, 2026
1b8d254
rename: with { type: 'runtime' } => with { type: 'vike-pointer' }
brillout Feb 26, 2026
b48bbcc
minor refactor: rename pluginStripRuntimeImportAttribute => pluginStr…
brillout Feb 26, 2026
d44d27f
comment
brillout Feb 26, 2026
d348534
minor refactor
brillout Feb 26, 2026
ffbac4f
comment
brillout Feb 26, 2026
0767293
split out vike-pointer
brillout Feb 26, 2026
82ed6ea
comment
brillout Feb 26, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion packages/vike/src/node/vite/shared/resolveVikeConfigInternal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -979,7 +979,15 @@ function getConfigValueSources(
...configValueSourceCommon,
...confVal,
configEnv: configEnvResolved,
valueIsLoadedWithImport: !confVal.valueIsLoaded || !isJsonValue(confVal.value),
// TODO/now: rename valueIsLoadedWithImport valueLoadedViaImport
valueIsLoadedWithImport:
// If +{configName}.js is (also) runtime code => always load it via import (not strictly required, but seems to be a good default)
!!configEnvResolved.client ||
!!configEnvResolved.server ||
// No choice: value isn't loaded at config-time
!confVal.valueIsLoaded ||
// No choice: value isn't serializable
!isJsonValue(confVal.value),
valueIsDefinedByPlusValueFile: true,
definedAt: {
...plusFile.filePath,
Expand Down
Loading