This repo is created to demonstrate answer provided to this SO Question.
Generates output to build/dist directory
Removes all auto generated contents from build/dist directory
When you run build command (ie. npm run build) it dynamically creates vendor bundle
including all imports from node_modules
in our source files. It also creates polyfill bundle
by including all module explicitly defined in src/polyfill.ts
file. And the remaining contents which is essentially the source code we authored is separated in final main bundle
.