Skip to content

Commit

Permalink
Respect bslib.precompiled option when considering whether compile S…
Browse files Browse the repository at this point in the history
…ass for components (#677)
  • Loading branch information
cpsievert authored Jul 14, 2023
1 parent ef1e120 commit 5c74f4c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion R/utils-deps.R
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ component_dependency_css <- function(name) {

# Run-time (Sass) component styles
component_dependency_sass <- function(theme, name) {
if (!is_bs_theme(theme) || identical(theme, bs_theme())) {
precompiled <- isTRUE(get_precompiled_option())
default_theme <- !is_bs_theme(theme) || identical(theme, bs_theme())
if (precompiled && default_theme) {
component_dependency_css(name)
} else {
component_dependency_sass_(theme, name)
Expand Down

0 comments on commit 5c74f4c

Please sign in to comment.