Excellent article!
blaine flynn garrett
11
Hey Blaine! Thanks for the feedback and your question.
The results of the build is transpiled code with the imports resolved to CommonJS. The following is an example of the transpiled code using CommonJS.
exports['default'] = BootstrapRouter;
module.exports = exports['default'];
Since you’re running the server using NodeJS, it natively handles CommonJS. So I would only merge into one file in case of bundling for the client since browser’s don’t handles CommonJS.
If you find any way to boost the performance please let me know!