Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 2 additions & 0 deletions .github/workflows/pullrequest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,8 @@ jobs:
push: false
load: true
tags: worker-dev/echocontainer:latest
cache-from: type=gha
cache-to: type=gha,mode=max

- name: Run tests
env:
Expand Down
8 changes: 4 additions & 4 deletions worker-build/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,9 @@ pub fn main() -> Result<()> {

wasm_pack_build.init()?;

let supports_module_and_reset_state =
wasm_pack_build.supports_target_module_and_reset_state()?;
if supports_module_and_reset_state {
let module_target = wasm_pack_build.supports_target_module_and_reset_state()?
|| env::var("CUSTOM_SHIM").is_ok();
if module_target {
wasm_pack_build
.extra_args
.push("--experimental-reset-state-function".to_string());
Expand All @@ -91,7 +91,7 @@ pub fn main() -> Result<()> {
wasm_coredump()?;
}

if supports_module_and_reset_state {
if module_target {
let (has_fetch_handler, has_queue_handler, has_scheduled_handler) =
detect_exported_handlers()?;

Expand Down