How would one perform a require of CSS - e.g. Bootstrap - when there is not possible place within the module that could invoke the require function?
I have created a dedicated library module that is essentially a facade of external references for react-bootstrap (using kotlin-react KClass). The module has no main method, no KComponent classes and none of the external references are consumed from within the module.
In essence, this module has no possible location in which I can perform
require("bootstrap/dist/css/bootstrap.min.css") to import the pre-compiled Bootstrap CSS and as such, the module cannot satisfy its self-contained credentials.
Given this, how would one ensure that such CSS resources can be made available as if the module had been able to perform a
For full disclosure and additional context to a solution, future goals intend to have the frontend application that consumes the module, use Bootstraps sass, making style definition and importing the frontend application responsibility. But right now, that is not possible and I do not want to have the
require in the consuming frontend app.
I could just require the css in the frontend app right now, but I am after a present solution in which the frontend app should need only specify a dependancy on the module, then import only the external facade callables the module provides. i.e. the frontend app should be able to assume that the dependancy & import of these callables provides everything it needs without an additional require.