add_filter( 'powered_cache_delayed_js_skip', function ( $is_delay_skipped ) {
if ( function_exists( 'is_amp_endpoint' ) && is_amp_endpoint() ) {
$is_delay_skipped = true;
}
return $is_delay_skipped;
} );
should do the trick but it's better to bring into the plugin