Question: for example if i wanted to reference this JS link:

`import https://embed.twitch.tv/embed/v1.js;`

I can reference it in an HTML file like this:

`<script src="https://embed.twitch.tv/embed/v1.js"></script>`

But is there a way to reference it in a JavaScript?
I'm trying to use more of it's attributes within my code base, not just within the HTML.

Answer: 
well.. if you are using webpack as your module bundler, then following piece of code is responsible for code splitting.. Just remove the code responsible for splitting into chunks.

```
optimization: {
//        splitChunks: {
//          cacheGroups: {
//            commons: {
//              test: /[\\/]node_modules[\\/]/,
//              name: "vendors",
//              chunks: "all"
//            }
//          }
//        }
      }

```
If you are using webpack, it does this automatically for you (If you use [dynamic](https://webpack.js.org/guides/code-splitting/#dynamic-imports) import or set [chunks](https://webpack.js.org/guides/code-splitting/#splitchunksplugin)). 

But if want to do this manually, you could create a [script](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/script) element in `bundle.js`. And set async or defer based on your use case.