Importing Files into Webpack Entry Point
Typically, other files are imported to the entry point. Let's look at an example. Let's say we have one file:
alert(1);
Let there also be a second file:
alert(2);
Let's import them into the entry point:
import './test1.js';
import './test2.js';
Import several files to your entry point. Build. Check in the browser that the code of all the included files runs.
Files that are imported to the entry point may also contain imports. Make sure this will work.