Skip to content

Commit 5c74f4c

Browse files
authored
Respect bslib.precompiled option when considering whether compile Sass for components (#677)
1 parent ef1e120 commit 5c74f4c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

R/utils-deps.R

+3-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@ component_dependency_css <- function(name) {
2424

2525
# Run-time (Sass) component styles
2626
component_dependency_sass <- function(theme, name) {
27-
if (!is_bs_theme(theme) || identical(theme, bs_theme())) {
27+
precompiled <- isTRUE(get_precompiled_option())
28+
default_theme <- !is_bs_theme(theme) || identical(theme, bs_theme())
29+
if (precompiled && default_theme) {
2830
component_dependency_css(name)
2931
} else {
3032
component_dependency_sass_(theme, name)

0 commit comments

Comments
 (0)