Skip to content

lekhnath/webpack-implicit-vendor-with-polyfill

Repository files navigation

Webpack implicit vendor bundle with polyfill bundle

This repo is created to demonstrate answer provided to this SO Question.

# Available npm commands:

npm run build

Generates output to build/dist directory

npm run clean:build

Removes all auto generated contents from build/dist directory

# How it works

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.

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published