require(`${path_to_file}`); 和 require(path_to_file); 居然不一样,前者没问题,后者会报错:Uncaught Error: Cannot find module "."
require(`${path_to_file}`);
require(path_to_file);
Uncaught Error: Cannot find module "."
https://github.com/webpack/webpack/issues/4921
不知道为什么。