From 622c1a402a10f06f65195ab5b6402cb6ad501b84 Mon Sep 17 00:00:00 2001 From: David Sherret Date: Wed, 21 Feb 2024 18:40:41 -0500 Subject: [PATCH] fix: make some view dependencies optional --- rs-lib/Cargo.toml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rs-lib/Cargo.toml b/rs-lib/Cargo.toml index ef3e14d..7360dea 100644 --- a/rs-lib/Cargo.toml +++ b/rs-lib/Cargo.toml @@ -11,11 +11,11 @@ all-features = true [features] sourcemap = ["swc_common/sourcemap"] -view = [] +view = ["bumpalo", "allocator-api2"] [dependencies] -allocator-api2 = "0.2.16" -bumpalo = { version = "3.14.0", features = ["collections", "allocator-api2"] } +allocator-api2 = { version = "0.2.16", optional = true } +bumpalo = { version = "3.14.0", optional = true, features = ["collections", "allocator-api2"] } num-bigint = "0.4" rustc-hash = "1.1.0" swc_atoms = "0.6.5"