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:

src/test1.jsalert(1);

Let there also be a second file:

src/test2.jsalert(2);

Let's import them into the entry point:

src/index.jsimport './test1.js';
import './test2.js';
Задание 1

Import several files to your entry point. Build. Check in the browser that the code of all the included files runs.

Задание 2

Files that are imported to the entry point may also contain imports. Make sure this will work.