We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
bslib.precompiled
1 parent ef1e120 commit 5c74f4cCopy full SHA for 5c74f4c
R/utils-deps.R
@@ -24,7 +24,9 @@ component_dependency_css <- function(name) {
24
25
# Run-time (Sass) component styles
26
component_dependency_sass <- function(theme, name) {
27
- if (!is_bs_theme(theme) || identical(theme, bs_theme())) {
+ precompiled <- isTRUE(get_precompiled_option())
28
+ default_theme <- !is_bs_theme(theme) || identical(theme, bs_theme())
29
+ if (precompiled && default_theme) {
30
component_dependency_css(name)
31
} else {
32
component_dependency_sass_(theme, name)
0 commit comments