Skip to content

Commit 075f9b7

Browse files
authored
fix(turbopack): invalidate lazy compilation state across sessions (#193)
1 parent acf96b3 commit 075f9b7

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

  • turbopack/crates/turbopack-ecmascript/src/async_chunk

‎turbopack/crates/turbopack-ecmascript/src/async_chunk/proxy.rs‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,9 @@ pub fn activation_key_from_chunk_path(path: &str) -> Option<RcStr> {
7070
/// The activation state of the lazily compiled dynamic import identified by `key`.
7171
///
7272
/// Memoized per key, so every proxy and every reader of a given key observe the same bit.
73-
#[turbo_tasks::function]
73+
/// The state is not serialized. Invalidate cached readers in each new session so they
74+
/// subscribe to the recreated state.
75+
#[turbo_tasks::function(session_dependent)]
7476
pub fn lazy_compilation_state(key: RcStr) -> Vc<LazyCompilationState> {
7577
let _ = key;
7678
LazyCompilationState {

0 commit comments

Comments
 (0)