Reuse static files across your self-contained components

Components only deploy the files within their directories, so they cannot reference shared libraries or files outside of the component directory.

You can get around this by building or compiling your files before deploying your components. For example, you could use ESBuild, Webpack, Vite, Gulp etc to automate this process.