I am using Babel in my project. The thing is, I have this line of code in my server.js:
server.js
import schema from \"./data/schema\";
(
You can use the following solution to compile all included files into one using Babel:
npx babel src --out-file script-compiled.js