Skip to content

Commit

Permalink
Always include esm.css for ESM components (#7752)
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr authored Mar 2, 2025
1 parent a1b91cd commit f9b2c76
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions panel/models/reactive_esm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import {DOMEvent} from "./html"
import {HTMLBox, HTMLBoxView, set_size} from "./layout"
import {convertUndefined, formatError} from "./util"

import error_css from "styles/models/esm.css"
import esm_css from "styles/models/esm.css"

const MODULE_CACHE = new Map()

Expand Down Expand Up @@ -200,9 +200,7 @@ export class ReactiveESMView extends HTMLBoxView {

override stylesheets(): StyleSheetLike[] {
const stylesheets = super.stylesheets()
if (this.model.dev) {
stylesheets.push(error_css)
}
stylesheets.push(esm_css)
if (this.model.css_bundle) {
if (this.model.bundle === "url") {
stylesheets.push(new ImportedStyleSheet(this.model.css_bundle))
Expand Down

0 comments on commit f9b2c76

Please sign in to comment.