Why transpile_packages don't work ? #5156
-
|
Hi, I wrapped a local js component and add a transpile_package, but why it didn't work and I didn't find it in My codes are import reflex as rx
class JbrowseComponent(rx.NoSSRComponent):
library: str = "/public/jbrowse"
tag: str = "JbrowseComponent"
is_default = True
lib_dependencies: list[str] = ["@fontsource/roboto","@jbrowse/react-linear-genome-view2","jbrowse-plugin-ucsc","json-stable-stringify"]
transpile_packages: list[str] = ["@mui/x-data-grid"]
assembly: rx.Var[dict]
tracks: rx.Var[list]
location: rx.Var[str]
default_session: rx.Var[dict]
j_browse_linear_genome_view = JbrowseComponent.create |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
If you add I could entertain a feature request to automatically add |
Beta Was this translation helpful? Give feedback.
transpile_packagesis just a list of dependencies that if found will be transpiled, as the code is currently written, putting something intotranspile_packageson its own doesn't cause it to be added to the dependencies.If you add
"@mui/x-data-grid"to thelib_dependencies, then you'll see it in thenext.config.js.I could entertain a feature request to automatically add
transpile_packagesto the dependency list, but that's not currently how it works.