In extension development, how can I include non-typescript static resources?

I am developing jupyterlab-box-drive.
An extension that adds Box cloud storage as a drive to jupyterlab.

there are at least two non-typescript static resources

I (forced) put these two in a visible place and created a state that works with docker compose

Is there a better way to do it?

I had to load BoxSdk.js, so I forced a script tag into the body tag

I solved it by below way

writing the cp command in the build script.

One way could be to use a custom webpack.config.js when building the JupyterLab extension and use the webpack asset modules. An example would be the jupyterlite-pyodide-kernel extension which ships .whl files in the extension:

The CopyWebpackPlugin might also work: CopyWebpackPlugin | webpack