We strongly believe that staying close to browser standards will be the best long term investment for your code. It is the basis for all our recommendations, and it means that sometimes we will not recommend a popular feature or functionality. It also means we can be faster to adopt and recommend new browser standards.
Building web apps
Building is a necessary optimization when shipping apps to production. Generally speaking, build tools accomplish some or all of the following:
- Code optimization (minification - reducing the size of the app)
- Tree shaking (removing dead code)
- Bundling and code splitting (combining many files into a few files)
- Transforming/polyfilling standard code for older browsers
- Transforming/polyfilling experimental standards for older browsers
- Transforming/polyfilling non-standard code
Rollup is a another popular build tool which recently had it's 1.0 release. It's especially suitable for optimizing and minifying es modules, and it can output es modules for browsers which have native support. We don't have a recommended setup for rollup yet.
Web components are not supported yet on Edge and Internet Explorer 11. The recommended approach is to conditionally load the polyfills at runtime using our Polyfills Loader for more.